Merge pull request #1 from WyldePointer/patch-1

Printing error message on stderr instead of stdout.
This commit is contained in:
Babak Farrokhi 2017-09-24 18:21:25 +03:30 committed by GitHub
commit 1aebd1feda

2
pps.c
View File

@ -11,7 +11,7 @@ int main(void)
char *name; char *name;
if (getifaddrs(&ifap) != 0) { if (getifaddrs(&ifap) != 0) {
printf("error\n"); fprintf(stderr, "error\n");
} }
else { else {
for (ifa = ifap; ifa; ifa= ifa->ifa_next) { for (ifa = ifap; ifa; ifa= ifa->ifa_next) {