diff options
author | sc | 1999-02-19 09:53:41 +0000 |
---|---|---|
committer | sc | 1999-02-19 09:53:41 +0000 |
commit | 1ba29102e4b863fa4e0e08888f9ce3c9553996a0 (patch) | |
tree | 5414ce956e4324725bc53dd9e82a926f417f192e /src | |
parent | 7baa382a1f393b1bff53e269adba2ab194e45574 (diff) | |
download | ivy-c-1ba29102e4b863fa4e0e08888f9ce3c9553996a0.zip ivy-c-1ba29102e4b863fa4e0e08888f9ce3c9553996a0.tar.gz ivy-c-1ba29102e4b863fa4e0e08888f9ce3c9553996a0.tar.bz2 ivy-c-1ba29102e4b863fa4e0e08888f9ce3c9553996a0.tar.xz |
Result of merge (two attempts to make ivyprobe ivy-3.0-compliant)
Diffstat (limited to 'src')
-rw-r--r-- | src/ivyprobe.c | 13 |
1 files changed, 3 insertions, 10 deletions
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; |