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] more namedev whitespace cleanups
[elogind.git]
/
udevdb.c
diff --git
a/udevdb.c
b/udevdb.c
index b75bf8048f1dd3633dea0844bfa7faae5f585018..ec67a079627df09cec9cdf5a1733d99e87139051 100644
(file)
--- a/
udevdb.c
+++ b/
udevdb.c
@@
-124,12
+124,12
@@
int udevdb_init(int init_flag)
if (init_flag != UDEVDB_DEFAULT && init_flag != UDEVDB_INTERNAL)
return -EINVAL;
if (init_flag != UDEVDB_DEFAULT && init_flag != UDEVDB_INTERNAL)
return -EINVAL;
- udevdb = tdb_open(
UDEV_CONFIG_DIR UDEV_DB
, 0, init_flag, O_RDWR | O_CREAT, 0644);
+ udevdb = tdb_open(
udev_db_filename
, 0, init_flag, O_RDWR | O_CREAT, 0644);
if (udevdb == NULL) {
if (init_flag == UDEVDB_INTERNAL)
dbg("Unable to initialize in-memory database");
else
if (udevdb == NULL) {
if (init_flag == UDEVDB_INTERNAL)
dbg("Unable to initialize in-memory database");
else
- dbg("Unable to initialize database at %s",
UDEV_CONFIG_DIR UDEV_DB
);
+ dbg("Unable to initialize database at %s",
udev_db_filename
);
return -EINVAL;
}
return 0;
return -EINVAL;
}
return 0;