diff options
Diffstat (limited to 'libmount/src')
| -rw-r--r-- | libmount/src/context.c | 2 | ||||
| -rw-r--r-- | libmount/src/context_umount.c | 2 | ||||
| -rw-r--r-- | libmount/src/optmap.c | 2 | ||||
| -rw-r--r-- | libmount/src/optstr.c | 2 | ||||
| -rw-r--r-- | libmount/src/tab_diff.c | 2 | ||||
| -rw-r--r-- | libmount/src/tab_parse.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/libmount/src/context.c b/libmount/src/context.c index 2b598dbb9d..8b548b20ff 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -1808,7 +1808,7 @@ int mnt_context_prepare_srcpath(struct libmnt_context *cxt) * Source is PATH (canonicalize) */ path = mnt_resolve_path(src, cache); - if (path && strcmp(path, src)) + if (path && strcmp(path, src) != 0) rc = mnt_fs_set_source(cxt->fs, path); } diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c index f3e079981e..e1cf7c6885 100644 --- a/libmount/src/context_umount.c +++ b/libmount/src/context_umount.c @@ -388,7 +388,7 @@ static int is_associated_fs(const char *devname, struct libmnt_fs *fs) int flags = 0; /* check if it begins with /dev/loop */ - if (strncmp(devname, _PATH_DEV_LOOP, sizeof(_PATH_DEV_LOOP) - 1)) + if (strncmp(devname, _PATH_DEV_LOOP, sizeof(_PATH_DEV_LOOP) - 1) != 0) return 0; src = mnt_fs_get_srcpath(fs); diff --git a/libmount/src/optmap.c b/libmount/src/optmap.c index 1f3ace3d8e..a080d8df6f 100644 --- a/libmount/src/optmap.c +++ b/libmount/src/optmap.c @@ -249,7 +249,7 @@ const struct libmnt_optmap *mnt_optmap_get_entry( } continue; } - if (strncmp(ent->name, name, namelen)) + if (strncmp(ent->name, name, namelen) != 0) continue; p = ent->name + namelen; if (*p == '\0' || *p == '=' || *p == '[') { diff --git a/libmount/src/optstr.c b/libmount/src/optstr.c index f975cef24b..781bb29806 100644 --- a/libmount/src/optstr.c +++ b/libmount/src/optstr.c @@ -1077,7 +1077,7 @@ int mnt_optstr_fix_user(char **optstr) if (!username) return -ENOMEM; - if (!ol.valsz || (ol.value && strncmp(ol.value, username, ol.valsz))) { + if (!ol.valsz || (ol.value && strncmp(ol.value, username, ol.valsz) != 0)) { if (ol.valsz) /* remove old value */ mnt_optstr_remove_option_at(optstr, ol.value, ol.end); diff --git a/libmount/src/tab_diff.c b/libmount/src/tab_diff.c index fdb1ef5c2c..81694bc6df 100644 --- a/libmount/src/tab_diff.c +++ b/libmount/src/tab_diff.c @@ -277,7 +277,7 @@ int mnt_diff_tables(struct libmnt_tabdiff *df, struct libmnt_table *old_tab, *f1 = mnt_fs_get_fs_options(o_fs), *f2 = mnt_fs_get_fs_options(fs); - if ((v1 && v2 && strcmp(v1, v2)) || (f1 && f2 && strcmp(f1, f2))) + if ((v1 && v2 && strcmp(v1, v2) != 0) || (f1 && f2 && strcmp(f1, f2) != 0)) tabdiff_add_entry(df, o_fs, fs, MNT_TABDIFF_REMOUNT); } } diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c index ffcf245790..3b52f6b287 100644 --- a/libmount/src/tab_parse.c +++ b/libmount/src/tab_parse.c @@ -885,7 +885,7 @@ static int mnt_table_parse_dir_filter(const struct dirent *d) namesz = strlen(d->d_name); if (!namesz || namesz < MNT_MNTTABDIR_EXTSIZ + 1 || strcmp(d->d_name + (namesz - MNT_MNTTABDIR_EXTSIZ), - MNT_MNTTABDIR_EXT)) + MNT_MNTTABDIR_EXT) != 0) return 0; /* Accept this */ |
