ND_PRINT((ndo, " [|aarp]"));
return;
}
- if (length < sizeof(*ap)) {
+ if (length < sizeof(*ap)) {
ND_PRINT((ndo, " [|aarp %u]", length));
return;
}
atp_print(netdissect_options *ndo,
register const struct atATP *ap, u_int length)
{
- char c;
uint32_t data;
if ((const u_char *)(ap + 1) > ndo->ndo_snapend) {
/* there shouldn't be any control flags */
if (ap->control & (atpXO|atpEOM|atpSTS)) {
- c = '[';
+ char c = '[';
if (ap->control & atpXO) {
ND_PRINT((ndo, "%cXO", c));
c = ',';
}
if (ap->control & atpSTS) {
ND_PRINT((ndo, "%cSTS", c));
- c = ',';
}
ND_PRINT((ndo, "]"));
}
atp_bitmap_print(netdissect_options *ndo,
register u_char bm)
{
- register char c;
register int i;
/*
* (gcc is smart enough to eliminate it, at least on the Sparc).
*/
if ((bm + 1) & (bm & 0xff)) {
- c = '<';
+ register char c = '<';
for (i = 0; bm; ++i) {
if (bm & 1) {
ND_PRINT((ndo, "%c%d", c, i));