summaryrefslogtreecommitdiff
path: root/udevdb.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2003-12-19 18:29:01 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:09 -0700
commita56ef382869bb76ade6d26cd7e8adc983ca3f89e (patch)
treeeb8ba1359793fe3994643a8aab8a5ef871986cd2 /udevdb.h
parent7ecb8d23f371a38cd918334ee7bf8383f1807ddb (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/udevdb.h b/udevdb.h
index 97e1f9bc40..d6c58ae766 100644
--- a/udevdb.h
+++ b/udevdb.h
@@ -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_ */