aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/xfuncs.c2
-rw-r--r--networking/libiproute/iptunnel.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 5298ee539..915b74dd1 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -172,7 +172,7 @@ char *utoa_to_buf(unsigned n, char *buf, unsigned buflen)
172/* Convert signed integer to ascii, like utoa_to_buf() */ 172/* Convert signed integer to ascii, like utoa_to_buf() */
173char *itoa_to_buf(int n, char *buf, unsigned buflen) 173char *itoa_to_buf(int n, char *buf, unsigned buflen)
174{ 174{
175 if (buflen && n<0) { 175 if (buflen && n < 0) {
176 n = -n; 176 n = -n;
177 *buf++ = '-'; 177 *buf++ = '-';
178 buflen--; 178 buflen--;
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c
index ad909ff21..1190b6867 100644
--- a/networking/libiproute/iptunnel.c
+++ b/networking/libiproute/iptunnel.c
@@ -191,7 +191,7 @@ static void parse_args(char **argv, int cmd, struct ip_tunnel_parm *p)
191 if (strchr(*argv, '.')) 191 if (strchr(*argv, '.'))
192 p->i_key = p->o_key = get_addr32(*argv); 192 p->i_key = p->o_key = get_addr32(*argv);
193 else { 193 else {
194 if (get_unsigned(&uval, *argv, 0)<0) { 194 if (get_unsigned(&uval, *argv, 0) < 0) {
195 bb_error_msg_and_die("invalid value of \"key\""); 195 bb_error_msg_and_die("invalid value of \"key\"");
196 } 196 }
197 p->i_key = p->o_key = htonl(uval); 197 p->i_key = p->o_key = htonl(uval);
@@ -203,7 +203,7 @@ static void parse_args(char **argv, int cmd, struct ip_tunnel_parm *p)
203 if (strchr(*argv, '.')) 203 if (strchr(*argv, '.'))
204 p->o_key = get_addr32(*argv); 204 p->o_key = get_addr32(*argv);
205 else { 205 else {
206 if (get_unsigned(&uval, *argv, 0)<0) { 206 if (get_unsigned(&uval, *argv, 0) < 0) {
207 bb_error_msg_and_die("invalid value of \"ikey\""); 207 bb_error_msg_and_die("invalid value of \"ikey\"");
208 } 208 }
209 p->i_key = htonl(uval); 209 p->i_key = htonl(uval);
@@ -215,7 +215,7 @@ static void parse_args(char **argv, int cmd, struct ip_tunnel_parm *p)
215 if (strchr(*argv, '.')) 215 if (strchr(*argv, '.'))
216 p->o_key = get_addr32(*argv); 216 p->o_key = get_addr32(*argv);
217 else { 217 else {
218 if (get_unsigned(&uval, *argv, 0)<0) { 218 if (get_unsigned(&uval, *argv, 0) < 0) {
219 bb_error_msg_and_die("invalid value of \"okey\""); 219 bb_error_msg_and_die("invalid value of \"okey\"");
220 } 220 }
221 p->o_key = htonl(uval); 221 p->o_key = htonl(uval);