diff options
author | Karel Zak | 2012-06-21 08:28:49 +0200 |
---|---|---|
committer | Karel Zak | 2012-06-21 08:28:49 +0200 |
commit | 1aae31c0488299023346bd2b4f8a8046a8546a8c (patch) | |
tree | 803e12112f47f13b5d49d41a3f624706d535b14c /include/sysfs.h | |
parent | lib/mangle: fix a memory leak in the test case (diff) | |
download | kernel-qcow2-util-linux-1aae31c0488299023346bd2b4f8a8046a8546a8c.tar.gz kernel-qcow2-util-linux-1aae31c0488299023346bd2b4f8a8046a8546a8c.tar.xz kernel-qcow2-util-linux-1aae31c0488299023346bd2b4f8a8046a8546a8c.zip |
lib/sysfs: use warn_unused_result for sysfs_init()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/sysfs.h')
-rw-r--r-- | include/sysfs.h | 4 |
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); |