mirror of
https://github.com/sheumann/hush.git
synced 2025-01-18 07:31:34 +00:00
Use error_msg() instead of fprintf(stderr, ...)
This commit is contained in:
parent
72f9a4277f
commit
4acf8f8481
@ -15,7 +15,7 @@
|
|||||||
* Foundation; either version 2 of the License, or (at
|
* Foundation; either version 2 of the License, or (at
|
||||||
* your option) any later version.
|
* your option) any later version.
|
||||||
*
|
*
|
||||||
* $Id: ifconfig.c,v 1.14 2001/10/28 05:12:18 andersen Exp $
|
* $Id: ifconfig.c,v 1.15 2001/10/28 09:36:48 andersen Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -356,7 +356,7 @@ int ifconfig_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
safe_strncpy(host, *argv, (sizeof host));
|
safe_strncpy(host, *argv, (sizeof host));
|
||||||
if (in_ether(host, &sa)) {
|
if (in_ether(host, &sa)) {
|
||||||
fprintf(stderr, "invalid hw-addr %s\n", host);
|
error_msg("invalid hw-addr %s", host);
|
||||||
++goterr;
|
++goterr;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user