pull-prototypes-to-head-20020821
[openafs.git] / src / libadmin / test / bos.c
index 8b5ad5d..6dc007c 100644 (file)
@@ -92,8 +92,8 @@ static LocalParseLine(
     register int tc;
 
     inToken = 0;        /* not copying token chars at start */
-    first = (struct token *) 0;
-    last = (struct token *) 0;
+    first = NULL;
+    last = NULL;
     while (1) {
         tc = *aline++;
         if (tc == 0 || space(tc)) {
@@ -101,7 +101,7 @@ static LocalParseLine(
                 inToken = 0;    /* end of this token */
                 *tptr++ = 0;
                 ttok = (struct token *) malloc(sizeof(struct token));
-                ttok->next = (struct token *) 0;
+                ttok->next = NULL;
                 ttok->key = (char *) malloc(strlen(tbuffer)+1);
                 strcpy(ttok->key, tbuffer);
                 if (last) {
@@ -123,7 +123,7 @@ static LocalParseLine(
         }
         if (tc == 0) {
             /* last token flushed 'cause space(0) --> true */
-            if (last) last->next = (struct token *) 0;
+            if (last) last->next = NULL;
             *alist = first;
             return 0;
         }
@@ -231,7 +231,7 @@ int ktime_ParsePeriodic(
         }
         /* otherwise use keyword table */
         for(tp = ptkeys;; tp++) {
-            if (tp->key == (char *) 0) {
+            if (tp->key == NULL) {
                LocalFreeTokens(tt);
                 return -1;
             }
@@ -1208,7 +1208,7 @@ Print_bos_KeyInfo_p(
 
     printf("%sKey: \n", prefix);
     for(i=0;i<KAS_ENCRYPTION_KEY_LEN;i++) {
-       printf("%s\t%d ", key->key.key[i]);
+       printf("%s\t%d ", prefix, key->key.key[i]);
     }
     printf("\n");
 }