From 186ec81be4b2c18f3bf41c622175da1b1f2f2a96 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Mon, 25 Jan 2016 14:26:19 +0100 Subject: [PATCH] Prettier error messages --- nmrp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nmrp.c b/nmrp.c index 61b592d..d807cd5 100644 --- a/nmrp.c +++ b/nmrp.c @@ -285,22 +285,22 @@ int nmrp_do(struct nmrpd_args *args) } if (!mac_parse(args->mac, dest)) { - fprintf(stderr, "Invalid MAC address %s.\n", args->mac); + fprintf(stderr, "Invalid MAC address '%s'.\n", args->mac); return 1; } if (!inet_aton(args->ipaddr, &ipaddr)) { - fprintf(stderr, "Invalid IP address %s.\n", args->ipaddr); + fprintf(stderr, "Invalid IP address '%s'.\n", args->ipaddr); return 1; } if (!inet_aton(args->ipmask, &ipmask)) { - fprintf(stderr, "Invalid subnet mask %s.\n", args->ipmask); + fprintf(stderr, "Invalid subnet mask '%s'.\n", args->ipmask); return 1; } if (access(args->filename, R_OK) == -1) { - fprintf(stderr, "Error accessing file %s.\n", args->filename); + fprintf(stderr, "Error accessing file '%s'.\n", args->filename); return 1; } -- 2.25.1