sthen 546f8c186b update to TTG ("SNMP Text Traffic Grapher") 2.1
- adds optional support for 64-bit counters and ifDescr in the interface list
2014-03-25 01:45:27 +00:00

38 lines
1.3 KiB
Plaintext

$OpenBSD: patch-ttg_c,v 1.2 2014/03/25 01:45:27 sthen Exp $
--- ttg.c.orig Tue Mar 25 01:40:21 2014
+++ ttg.c Tue Mar 25 01:41:22 2014
@@ -126,15 +126,6 @@ int main(int argc, char **argv) {
if((argc-optind)!=3)
usage();
- if(strcmp(netsnmp_get_version(), PACKAGE_VERSION)!=0) {
- fprintf(stderr,
- "ERROR: Net-SNMP version mismatch!\n"
- "Compiled with headers: %s\n"
- "Executed with library: %s\n",
- PACKAGE_VERSION, netsnmp_get_version());
- exit(1);
- }
-
S_MB=S_KB*S_KB;
S_GB=S_KB*S_KB*S_KB;
@@ -610,7 +601,7 @@ void version(void) {
"SNMP Text Traffic Grapher\n"
"Copyright (c) 2005 - 2012 by Antoni Sawicki\n"
"Version %s [Build: %s, %s]\n"
- "NET-SNMP Libraries=%s Headers=%s\n"
+ "NET-SNMP Libraries=%s\n"
"GCC Version %s\n"
"Kilo=%d (default)\n"
"Homepage: http://www.tenox.tc/out#ttg\n"
@@ -620,7 +611,7 @@ void version(void) {
" mike@mk.tc\n"
" tommy@ntinternals.net\n"
" piston@otel.net\n",
- VERSION, __DATE__, __TIME__, netsnmp_get_version(), PACKAGE_VERSION, __VERSION__, (int)S_KB);
+ VERSION, __DATE__, __TIME__, netsnmp_get_version(), __VERSION__, (int)S_KB);
exit(0);
}