diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2003-12-19 18:29:01 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:09 -0700 |
commit | a56ef382869bb76ade6d26cd7e8adc983ca3f89e (patch) | |
tree | eb8ba1359793fe3994643a8aab8a5ef871986cd2 /udevdb.h | |
parent | 7ecb8d23f371a38cd918334ee7bf8383f1807ddb (diff) |
[PATCH] udev-remove.c cleanups
I've moved the malloc out of the udevdb into udev-remove to free the
struct after use and not to allocate a different struct in the case the
device is not in the data base. I seems a bit easier to read.
Diffstat (limited to 'udevdb.h')
-rw-r--r-- | udevdb.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ extern void udevdb_exit(void); extern int udevdb_init(int init_flag); extern int udevdb_add_dev(const char *path, const struct udevice *dev); -extern struct udevice *udevdb_get_dev(const char *path); +extern int udevdb_get_dev(const char *path, struct udevice *dev); extern int udevdb_delete_dev(const char *path); #endif /* _UDEVDB_H_ */ |