Files
Ryan Schmidt 895446a3e6 ifstat: Fix +snmp variant and encoding of ifstat -v
Fix implicit declaration of functions and other problems caused by
missing headers in tests for snmp functionality that caused the +snmp
variant not to include snmp functionality when compiled by Xcode 12 or
later.

Change encoding of ifstat.c from ISO8859-1 to UTF-8 to fix incorrect
output when running "ifstat -v".
2021-06-26 02:31:01 -05:00

23 lines
1016 B
Diff

Convert from ISO8859-1 to UTF-8 to avoid:
ifstat.c:493:37: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
and incorrect output when running "ifstat -v".
--- ifstat.c.orig 2003-11-21 19:27:51.000000000 -0600
+++ ifstat.c 2021-06-26 02:25:39.000000000 -0500
@@ -1,6 +1,6 @@
/*
* ifstat - InterFace STATistics
- * Copyright (c) 2001, Gaël Roualland <gael.roualland@dial.oleane.com>
+ * Copyright (c) 2001, Gaël Roualland <gael.roualland@dial.oleane.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -490,7 +490,7 @@
break;
case 'v':
printf("ifstat version %s.\n"
- "Copyright (C) 2001-2003, Gaël Roualland <gael.roualland@dial.oleane.com>\n",
+ "Copyright (C) 2001-2003, Gaël Roualland <gael.roualland@dial.oleane.com>\n",
ifstat_version);
opt = ifstat_list_drivers();
printf("Compiled-in drivers: %s.\n", (opt != NULL) ? opt : "");