From 127c417ef970cf399894081ed99501db97cd32c7 Mon Sep 17 00:00:00 2001 From: Sohrab Monfared Date: Thu, 21 Sep 2017 20:47:20 +0430 Subject: [PATCH] Printing error message on stderr instead of stdout. --- pps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pps.c b/pps.c index 78b5168..afe1b81 100644 --- a/pps.c +++ b/pps.c @@ -11,7 +11,7 @@ int main(void) char *name; if (getifaddrs(&ifap) != 0) { - printf("error\n"); + fprintf(stderr, "error\n"); } else { for (ifa = ifap; ifa; ifa= ifa->ifa_next) {