From a56ef382869bb76ade6d26cd7e8adc983ca3f89e Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Fri, 19 Dec 2003 18:29:01 -0800 Subject: [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. --- udevdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'udevdb.h') 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_ */ -- cgit v1.2.3-54-g00ecf