remove-redefined-warnings-20031114
[openafs.git] / src / WINNT / afsd / cklog.c
index 10898f0..9f3d901 100644 (file)
@@ -1,15 +1,10 @@
-/* 
- * Copyright (C) 1998, 1989 Transarc Corporation - All rights reserved
- *
- * (C) COPYRIGHT IBM CORPORATION 1987, 1988
- * LICENSED MATERIALS - PROPERTY OF IBM
- *
- *
- */
-/* Copyright (C) 1991, 1989 Transarc Corporation - All rights reserved */
 /*
- * (C) COPYRIGHT IBM CORPORATION 1988, 1989
- * LICENSED MATERIALS - PROPERTY OF IBM
+ * Copyright 2000, International Business Machines Corporation and others.
+ * All Rights Reserved.
+ * 
+ * This software has been released under the terms of the IBM Public
+ * License.  For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
  */
 
 #include <afs/param.h>
@@ -24,7 +19,7 @@
 
 #define AFS_KERBEROS_ENV
 
-#define KABADARGUMENT 1
+#define BAD_ARGUMENT 1
 #define KLOGEXIT(code) exit(code)
 
 int CommandProc();
@@ -231,7 +226,7 @@ CommandProc (as, arock)
        if (size <= 0 || size >= sizeof(name)) {
            size = sizeof(name) - 1;
            if (!GetUserName(name, &size)) {
-               KLOGEXIT( KABADARGUMENT );
+               KLOGEXIT( BAD_ARGUMENT );
            }
        }
     }
@@ -256,7 +251,7 @@ CommandProc (as, arock)
 bad_lifetime:
            if (!Silent) fprintf (stderr, "%s: translating '%s' to lifetime failed\n",
                               rn, life);
-           return KABADARGUMENT;
+           return BAD_ARGUMENT;
        }
        if (*sp == ':') {
            life = sp+1;                /* skip the colon */
@@ -274,7 +269,7 @@ bad_lifetime:
                fprintf (stderr,
                "%s: a lifetime of %.2f hours is too long, must be less than %d.\n",
                rn, (double)lifetime/3600.0, MAXKTCTICKETLIFETIME/3600);
-           KLOGEXIT( KABADARGUMENT );
+           KLOGEXIT( BAD_ARGUMENT );
        }
     } else lifetime = 0;
 
@@ -294,7 +289,7 @@ bad_lifetime:
                reason = NULL;
            if (reason) {
                fprintf (stderr, "Unable to login because %s.\n", reason);
-               KLOGEXIT( KABADARGUMENT );
+               KLOGEXIT( BAD_ARGUMENT );
            }
        }
     }