style fixes. no code changes
This commit is contained in:
parent
5a96c3eab6
commit
6c10657c4a
@ -172,7 +172,7 @@ char *utoa_to_buf(unsigned n, char *buf, unsigned buflen)
|
|||||||
/* Convert signed integer to ascii, like utoa_to_buf() */
|
/* Convert signed integer to ascii, like utoa_to_buf() */
|
||||||
char *itoa_to_buf(int n, char *buf, unsigned buflen)
|
char *itoa_to_buf(int n, char *buf, unsigned buflen)
|
||||||
{
|
{
|
||||||
if (buflen && n<0) {
|
if (buflen && n < 0) {
|
||||||
n = -n;
|
n = -n;
|
||||||
*buf++ = '-';
|
*buf++ = '-';
|
||||||
buflen--;
|
buflen--;
|
||||||
|
@ -191,7 +191,7 @@ static void parse_args(char **argv, int cmd, struct ip_tunnel_parm *p)
|
|||||||
if (strchr(*argv, '.'))
|
if (strchr(*argv, '.'))
|
||||||
p->i_key = p->o_key = get_addr32(*argv);
|
p->i_key = p->o_key = get_addr32(*argv);
|
||||||
else {
|
else {
|
||||||
if (get_unsigned(&uval, *argv, 0)<0) {
|
if (get_unsigned(&uval, *argv, 0) < 0) {
|
||||||
bb_error_msg_and_die("invalid value of \"key\"");
|
bb_error_msg_and_die("invalid value of \"key\"");
|
||||||
}
|
}
|
||||||
p->i_key = p->o_key = htonl(uval);
|
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)
|
|||||||
if (strchr(*argv, '.'))
|
if (strchr(*argv, '.'))
|
||||||
p->o_key = get_addr32(*argv);
|
p->o_key = get_addr32(*argv);
|
||||||
else {
|
else {
|
||||||
if (get_unsigned(&uval, *argv, 0)<0) {
|
if (get_unsigned(&uval, *argv, 0) < 0) {
|
||||||
bb_error_msg_and_die("invalid value of \"ikey\"");
|
bb_error_msg_and_die("invalid value of \"ikey\"");
|
||||||
}
|
}
|
||||||
p->i_key = htonl(uval);
|
p->i_key = htonl(uval);
|
||||||
@ -215,7 +215,7 @@ static void parse_args(char **argv, int cmd, struct ip_tunnel_parm *p)
|
|||||||
if (strchr(*argv, '.'))
|
if (strchr(*argv, '.'))
|
||||||
p->o_key = get_addr32(*argv);
|
p->o_key = get_addr32(*argv);
|
||||||
else {
|
else {
|
||||||
if (get_unsigned(&uval, *argv, 0)<0) {
|
if (get_unsigned(&uval, *argv, 0) < 0) {
|
||||||
bb_error_msg_and_die("invalid value of \"okey\"");
|
bb_error_msg_and_die("invalid value of \"okey\"");
|
||||||
}
|
}
|
||||||
p->o_key = htonl(uval);
|
p->o_key = htonl(uval);
|
||||||
|
Loading…
Reference in New Issue
Block a user