commit ebd28d7733b11dbc957e93b2931988311c51b052
parent 72bf22623b25bcfbe8c0923f11485e9542d015a9
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Sat, 21 Jan 2006 18:53:33 +0200
some stylistic changes
Diffstat:
M | ii.c | | | 32 | +++++++++----------------------- |
1 file changed, 9 insertions(+), 23 deletions(-)
diff --git a/ii.c b/ii.c
@@ -1,6 +1,6 @@
/*
- * (C)opyright MMV Anselm R. Garbe <garbeam at gmail dot com>
- * Nico Golde <nico at ngolde dot de>
+ * (C)opyright MMV-MMVI Anselm R. Garbe <garbeam at gmail dot com>
+ * (C)opyright MMV-MMVI Nico Golde <nico at ngolde dot de>
* See LICENSE file for license details.
*/
@@ -471,27 +471,13 @@ int main(int argc, char *argv[])
for(i = 1; (i + 1 < argc) && (argv[i][0] == '-'); i++) {
switch (argv[i][1]) {
- case 'i':
- snprintf(prefix,sizeof(prefix),"%s", argv[++i]);
- break;
- case 's':
- host = argv[++i];
- break;
- case 'p':
- port = atoi(argv[++i]);
- break;
- case 'n':
- snprintf(nick,sizeof(nick),"%s", argv[++i]);
- break;
- case 'k':
- key = argv[++i];
- break;
- case 'f':
- fullname = argv[++i];
- break;
- default:
- usage();
- break;
+ case 'i': snprintf(prefix,sizeof(prefix),"%s", argv[++i]); break;
+ case 's': host = argv[++i]; break;
+ case 'p': port = atoi(argv[++i]); break;
+ case 'n': snprintf(nick,sizeof(nick),"%s", argv[++i]); break;
+ case 'k': key = argv[++i]; break;
+ case 'f': fullname = argv[++i]; break;
+ default: usage(); break;
}
}
irc = tcpopen(port);