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] libsysfs: work around a klibc bug
[elogind.git]
/
libsysfs
/
sysfs_class.c
diff --git
a/libsysfs/sysfs_class.c
b/libsysfs/sysfs_class.c
index a132bb64cbc097a989e52a8ddeeeda2bdf69ddaa..4ea7f41c99c293410482acfed888498e47f79d27 100644
(file)
--- a/
libsysfs/sysfs_class.c
+++ b/
libsysfs/sysfs_class.c
@@
-111,7
+111,7
@@
static void set_classdev_classname(struct sysfs_class_device *cdev)
if (c == NULL) {
c = strstr(cdev->path, SYSFS_BLOCK_NAME);
} else {
- c = str
str(c, "/"
);
+ c = str
chr(c, '/'
);
}
if (c == NULL)