chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] add BUS= bug to TODO list so it will not get forgotten.
[elogind.git]
/
udevdb.c
diff --git
a/udevdb.c
b/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;
char type;
int major;
int minor;
-
in
t 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;
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);