const char *ip_address = get_ip_addr(interface);
if (ip_address == NULL) {
+ printf("%s", color("#FF0000"));
printf("%s", format_down);
+ (void)printf("%s", endcolor());
return;
+ } else {
+ printf("%s", color("#00FF00"));
}
for (walk = format_up; *walk != '\0'; walk++) {
walk += strlen("speed");
}
}
+
+ (void)printf("%s", endcolor());
}