summaryrefslogtreecommitdiff
path: root/app/iceauth/iceauth.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2024-04-28 09:50:27 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2024-04-28 09:50:27 +0000
commit5caab0a70594f4062c736bc4919826116b6542fb (patch)
treecfb0fa007b9a025c4f2147527ebef141381620c9 /app/iceauth/iceauth.c
parent4f5a80883262d8cfda7f68f749e05b122f78579f (diff)
Update to iceauth 1.0.10
Diffstat (limited to 'app/iceauth/iceauth.c')
-rw-r--r--app/iceauth/iceauth.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/iceauth/iceauth.c b/app/iceauth/iceauth.c
index 926aec62d..b40029efc 100644
--- a/app/iceauth/iceauth.c
+++ b/app/iceauth/iceauth.c
@@ -85,7 +85,6 @@ usage (int exitcode)
int
main (int argc, char *argv[])
{
- int i;
const char *sourcename = defsource;
const char **arglist = defcmds;
int nargs = ndefcmds;
@@ -93,13 +92,11 @@ main (int argc, char *argv[])
ProgramName = argv[0];
- for (i = 1; i < argc; i++) {
+ for (int i = 1; i < argc; i++) {
const char *arg = argv[i];
if (arg[0] == '-') {
- const char *flag;
-
- for (flag = (arg + 1); *flag; flag++) {
+ for (const char *flag = (arg + 1); *flag; flag++) {
switch (*flag) {
case 'f': /* -f authfilename */
if (++i >= argc) {