chiark / gitweb /
[PATCH] add BUS= bug to TODO list so it will not get forgotten.
[elogind.git] / udevdb.c
index 05bd72a5d9929e5ec6617ac4ed6bb08647bc1ca2..678ddd960340764bb8a94f7025ebb4bf29e8d00d 100644 (file)
--- a/udevdb.c
+++ b/udevdb.c
@@ -73,7 +73,7 @@ struct namedb_record {
        char type;
        int major;
        int minor;
-       int mode;
+       mode_t mode;
 };
 
 /**
@@ -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);