summaryrefslogtreecommitdiff
path: root/udevdb.c
diff options
context:
space:
mode:
authorrml@tech9.net <rml@tech9.net>2003-10-19 21:55:43 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:01:41 -0700
commitd7e954a4ef664cd65fbb34cb23ca57dc1bb89ea0 (patch)
treec1168072833683770d5ddbc94941a81a3b9d9ce9 /udevdb.c
parentfd14ee04ef9834516cd3b6ae4d07a3e4156e232e (diff)
[PATCH] udev: trivial trivialities
Yah yah, really trivial stuff... - get_class_device() doesn't need to be exported; it should be static - white space cleanup
Diffstat (limited to 'udevdb.c')
-rw-r--r--udevdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udevdb.c b/udevdb.c
index 05bd72a5d..fa26de46d 100644
--- a/udevdb.c
+++ b/udevdb.c
@@ -130,13 +130,13 @@ static struct busdb_record *busdb_fetch(const char *bus, const char *id)
data = tdb_fetch(udevdb, key);
if (data.dptr == NULL || data.dsize == 0)
return NULL;
-
+
rec = (struct busdb_record *)malloc(sizeof(struct busdb_record));
if (rec == NULL) {
free(data.dptr);
return NULL;
}
-
+
memcpy(rec, data.dptr, sizeof(struct busdb_record));
free(data.dptr);