chiark / gitweb /
[PATCH] udev: trivial trivialities
authorrml@tech9.net <rml@tech9.net>
Mon, 20 Oct 2003 04:55:43 +0000 (21:55 -0700)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:01:41 +0000 (21:01 -0700)
Yah yah, really trivial stuff...

- get_class_device() doesn't need to be exported; it
  should be static

- white space cleanup

udev-add.c
udevdb.c

index 116ab2b448cb9f0d92edcf35437e19e137992198..05f2aa3e9dc414598eb81e18d81089c164828fa2 100644 (file)
@@ -101,7 +101,7 @@ static int create_node(char *name, char type, int major, int minor, int mode)
        return retval;
 }
 
        return retval;
 }
 
-struct sysfs_class_device *get_class_dev(char *device_name)
+static struct sysfs_class_device *get_class_dev(char *device_name)
 {
        char sysfs_path[SYSFS_PATH_MAX];
        char dev_path[SYSFS_PATH_MAX];
 {
        char sysfs_path[SYSFS_PATH_MAX];
        char dev_path[SYSFS_PATH_MAX];
index 05bd72a5d9929e5ec6617ac4ed6bb08647bc1ca2..fa26de46d5956f4051da42741f1d413a5c5a0e40 100644 (file)
--- 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;
        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;
        }
        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);
 
        memcpy(rec, data.dptr, sizeof(struct busdb_record));
        free(data.dptr);