summaryrefslogtreecommitdiffstats
path: root/include/sysfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sysfs.h')
-rw-r--r--include/sysfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sysfs.h b/include/sysfs.h
index 8604aca5e..19cf9e8e0 100644
--- a/include/sysfs.h
+++ b/include/sysfs.h
@@ -32,8 +32,8 @@ extern char *sysfs_devno_path(dev_t devno, char *buf, size_t bufsiz);
extern char *sysfs_devno_to_devpath(dev_t devno, char *buf, size_t bufsiz);
extern dev_t sysfs_devname_to_devno(const char *name, const char *parent);
-extern int sysfs_init(struct sysfs_cxt *cxt, dev_t devno,
- struct sysfs_cxt *parent);
+extern int sysfs_init(struct sysfs_cxt *cxt, dev_t devno, struct sysfs_cxt *parent)
+ __attribute__ ((warn_unused_result));
extern void sysfs_deinit(struct sysfs_cxt *cxt);
extern DIR *sysfs_opendir(struct sysfs_cxt *cxt, const char *attr);