mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Fix gcc missing parenthesis warnings
Gcc -Wall warn: 'missing parenthesis' Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
+2
-2
@@ -764,7 +764,7 @@ zfs_do_create(int argc, char **argv)
|
||||
zfs_prop_t resv_prop;
|
||||
char *strval;
|
||||
|
||||
if (p = strchr(argv[0], '/'))
|
||||
if ((p = strchr(argv[0], '/')))
|
||||
*p = '\0';
|
||||
zpool_handle = zpool_open(g_zfs, argv[0]);
|
||||
if (p != NULL)
|
||||
@@ -4035,7 +4035,7 @@ zfs_do_diff(int argc, char **argv)
|
||||
if (copy == NULL)
|
||||
usage(B_FALSE);
|
||||
|
||||
if (atp = strchr(copy, '@'))
|
||||
if ((atp = strchr(copy, '@')))
|
||||
*atp = '\0';
|
||||
|
||||
if ((zhp = zfs_open(g_zfs, copy, ZFS_TYPE_FILESYSTEM)) == NULL)
|
||||
|
||||
Reference in New Issue
Block a user