style fixes. no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36099 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -73,18 +73,17 @@ get_string(const char* val, const char* sep, u_int8_t* buf, int* lenp)
|
|||||||
| tohex((u_char) val[1]);
|
| tohex((u_char) val[1]);
|
||||||
#undef tohex
|
#undef tohex
|
||||||
val += 2;
|
val += 2;
|
||||||
} else {
|
} else
|
||||||
*p++ = *val++;
|
*p++ = *val++;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
len = p - buf;
|
len = p - buf;
|
||||||
/* The string "-" is treated as the empty string. */
|
/* The string "-" is treated as the empty string. */
|
||||||
if (!hexstr && len == 1 && buf[0] == '-') {
|
if (!hexstr && len == 1 && buf[0] == '-') {
|
||||||
len = 0;
|
len = 0;
|
||||||
memset(buf, 0, *lenp);
|
memset(buf, 0, *lenp);
|
||||||
} else if (len < *lenp) {
|
} else if (len < *lenp)
|
||||||
memset(p, 0, *lenp - len);
|
memset(p, 0, *lenp - len);
|
||||||
}
|
|
||||||
*lenp = len;
|
*lenp = len;
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
@@ -253,12 +252,10 @@ show_status(const char* dev, int s)
|
|||||||
print_string(data, len);
|
print_string(data, len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else
|
||||||
print_string(data, len);
|
print_string(data, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
usage()
|
usage()
|
||||||
|
|||||||
Reference in New Issue
Block a user