chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
man: improve grammar and word formatting in numerous man pages
[elogind.git]
/
src
/
libudev
/
libudev-hwdb.c
diff --git
a/src/libudev/libudev-hwdb.c
b/src/libudev/libudev-hwdb.c
index a56ad753e45479f673f9c4a01b799362bc306edb..5645a11437c7d100cd1d177e41ef50d30516d7d1 100644
(file)
--- a/
src/libudev/libudev-hwdb.c
+++ b/
src/libudev/libudev-hwdb.c
@@
-140,9
+140,13
@@
static const struct trie_node_f *node_lookup_f(struct udev_hwdb *hwdb, const str
}
static int hwdb_add_property(struct udev_hwdb *hwdb, const char *key, const char *value) {
}
static int hwdb_add_property(struct udev_hwdb *hwdb, const char *key, const char *value) {
- /* TODO: add sub-matches (+) against DMI data */
+ /*
+ * Silently ignore all properties which do not start with a
+ * space; future extensions might use additional prefixes.
+ */
if (key[0] != ' ')
return 0;
if (key[0] != ' ')
return 0;
+
if (udev_list_entry_add(&hwdb->properties_list, key+1, value) == NULL)
return -ENOMEM;
return 0;
if (udev_list_entry_add(&hwdb->properties_list, key+1, value) == NULL)
return -ENOMEM;
return 0;