From 1ba29102e4b863fa4e0e08888f9ce3c9553996a0 Mon Sep 17 00:00:00 2001 From: sc Date: Fri, 19 Feb 1999 09:53:41 +0000 Subject: Result of merge (two attempts to make ivyprobe ivy-3.0-compliant) --- src/ivyprobe.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/ivyprobe.c') diff --git a/src/ivyprobe.c b/src/ivyprobe.c index 970d5b2..d9a2ab1 100644 --- a/src/ivyprobe.c +++ b/src/ivyprobe.c @@ -189,23 +189,16 @@ void TimerCall(TimerId id, void *user_data, unsigned long delta) int main(int argc, char *argv[]) { - unsigned short bport = DEFAULT_BUS; int c; int timer_test = 0; - char dbuf [1024] = ""; + char busbuf [1024] = ""; const char* bus = 0; while ((c = getopt(argc, argv, "d:b:w:t")) != EOF) switch (c) { case 'b': - bport = atoi(optarg) ; + strcpy (busbuf, optarg); + bus = busbuf; break; - case 'd': - if (bus) - strcat (dbuf, ","); - else - bus = dbuf; - strcat (dbuf, optarg); - break; case 'w': wait_count = atoi(optarg) ; break; -- cgit v1.1