diff options
author | Christian Kohlstedde <christian@kohlsted.de> | 2015-02-22 18:25:12 +0100 |
---|---|---|
committer | Christian Kohlstedde <christian@kohlsted.de> | 2015-02-22 18:25:12 +0100 |
commit | 562a879f7c40bb7586e2d4b8dc55cf3171e5d43d (patch) | |
tree | 0fc0175da3af4bb8d48a6750921e649a5a2f1571 /src/print_disk_info.c | |
parent | 85bb373095d296a90a7a1e8741229dc4dcb9acc8 (diff) |
removing Yoda-Style
adding some words in the manpage
Diffstat (limited to 'src/print_disk_info.c')
-rw-r--r-- | src/print_disk_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print_disk_info.c b/src/print_disk_info.c index 4ed2f22..e225923 100644 --- a/src/print_disk_info.c +++ b/src/print_disk_info.c @@ -131,7 +131,7 @@ void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const ch struct mntent *m; bool found = false; - while (NULL != (m = getmntent(mntentfile))) { + while ((m = getmntent(mntentfile)) != NULL) { if (strcmp(m->mnt_dir, path) == 0) { found = true; break; |