pull-prototypes-to-head-20020821
[openafs.git] / src / comerr / error_msg.c
index b5205af..394db71 100644 (file)
@@ -18,6 +18,7 @@ RCSID("$Header$");
 #include "mit-sipb-cr.h"
 #include <afs/errors.h>
 #include <string.h>
+#include "com_err.h"
 
 static const char copyright[] =
     "Copyright 1986, 1987, 1988 by the Student Information Processing Board\nand the department of Information Systems\nof the Massachusetts Institute of Technology";
@@ -72,8 +73,8 @@ static char *vmsgs[] = {
     (char *) 0
 };
 
-static char *negative_message(code)
-int code; {
+static char *negative_message(int code)
+{
     if (code == -1)
        return "server or network not responding";
     else if (code == -2)
@@ -92,16 +93,15 @@ int code; {
     }
 }
 
-static char *volume_message(code)
-int code; {
+static char *volume_message(int code)
+{
       if (code >= 101 && code <= 111)
          return vmsgs[code-101];
       else
          return "unknown volume error";
 }
 
-const char * error_message (code)
-  int code;
+const char *error_message (afs_int32 code)
 {
     int offset;
     struct et_list *et;