diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-16 00:44:08 +0200 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-16 00:45:33 +0200 |
commit | 6972242126f1dbfb929dbd1c1582d973d2094d8a (patch) | |
tree | c1b1505036fdb00baba0cc17b68f46a085d17be2 /lib/extra_opts.c | |
parent | 15b4e89a42a3caf2c4da3992d698b356649665a1 (diff) | |
download | monitoring-plugins-6972242.tar.gz |
Fixes for compiler warning -Wparentheses
Diffstat (limited to 'lib/extra_opts.c')
-rw-r--r-- | lib/extra_opts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/extra_opts.c b/lib/extra_opts.c index b9843eba..771621d8 100644 --- a/lib/extra_opts.c +++ b/lib/extra_opts.c | |||
@@ -92,14 +92,14 @@ char **np_extra_opts(int *argc, char **argv, const char *plugin_name){ | |||
92 | /* append the list to extra_args */ | 92 | /* append the list to extra_args */ |
93 | if(extra_args==NULL){ | 93 | if(extra_args==NULL){ |
94 | extra_args=ea1; | 94 | extra_args=ea1; |
95 | while(ea1=ea1->next) ea_num++; | 95 | while((ea1 = ea1->next)) ea_num++; |
96 | }else{ | 96 | }else{ |
97 | ea_tmp=extra_args; | 97 | ea_tmp=extra_args; |
98 | while(ea_tmp->next) { | 98 | while(ea_tmp->next) { |
99 | ea_tmp=ea_tmp->next; | 99 | ea_tmp=ea_tmp->next; |
100 | } | 100 | } |
101 | ea_tmp->next=ea1; | 101 | ea_tmp->next=ea1; |
102 | while(ea1=ea1->next) ea_num++; | 102 | while((ea1 = ea1->next)) ea_num++; |
103 | } | 103 | } |
104 | ea1=ea_tmp=NULL; | 104 | ea1=ea_tmp=NULL; |
105 | } | 105 | } |