← Commit list

91c06e0a3

Denis Vlasenko
Denis Vlasenko
2007-01-07
FAILED Duration: 3s

Subject

arp: small fixes for user-supplied device name case

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/arp.c+2 -2
@@ -408,7 +408,7 @@ static int arp_show(char *name)
continue;
/* if the user specified device differs, skip it */
- if (device && strcmp(dev, device) != 0)
+ if (device[0])
continue;
shown++;
@@ -432,7 +432,7 @@ static int arp_show(char *name)
entries, entries - shown, shown);
if (!shown) {
- if (hw_set || host[0] || device)
+ if (hw_set || host[0] || device[0])
printf("No match found in %d entries\n", entries);
}