Index: tests/loopget.cpp
===================================================================
RCS file: /cvsroot/atmosphere/libksnmp/tests/loopget.cpp,v
retrieving revision 1.3
diff -u -B -r1.3 loopget.cpp
--- tests/loopget.cpp	18 Feb 2005 12:49:16 -0000	1.3
+++ tests/loopget.cpp	6 Feb 2006 00:02:18 -0000
@@ -96,8 +96,8 @@
 		goto endofmain;
 	}
 	
-	const int loop = atoi( args->arg(2) );
-	const int delay = atoi( args->arg(3) ) * 1000;
+	static const int loop = atoi( args->arg(2) );
+	static const int delay = atoi( args->arg(3) ) * 1000;
 	
 	for(int i = 0; i < loop; i++)
 	{
Index: tests/name2index.cpp
===================================================================
RCS file: /cvsroot/atmosphere/libksnmp/tests/name2index.cpp,v
retrieving revision 1.1
diff -u -B -r1.1 name2index.cpp
--- tests/name2index.cpp	18 Feb 2005 12:28:45 -0000	1.1
+++ tests/name2index.cpp	6 Feb 2006 00:02:18 -0000
@@ -67,6 +67,7 @@
 	int ret = 0;
 	
 	KSNMP::Session *session = NULL;
+	KSNMP::Device1213 *dev = NULL;
 	if ( args->getOption("V") == "1" )
 		session = new KSNMP::Session1("", args->getOption("c"));
 	else if ( args->getOption("V") == "2c" )
@@ -93,7 +94,7 @@
 		goto endofmain;
 	}
 	
-	KSNMP::Device1213 *dev = new KSNMP::Device1213(session);
+	dev = new KSNMP::Device1213(session);
 	
 	std::cout << "ifIndex: " << dev->getIfIndex(args->arg(1), false) << std::endl;