]> andersk Git - moira.git/blobdiff - util/et/init_et.c
Import latest com_err sources from Athena
[moira.git] / util / et / init_et.c
index 856f0fdc24a3ad4bce2d41e11300bcaac1ab0e77..5c59ec2ef3bfba154aab9fc346cdaf17aadf4f24 100644 (file)
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <errno.h>
 #include "error_table.h"
 #include "mit-sipb-copyright.h"
 
-#ifndef __STDC__
-#define const
-#endif
-
-#ifndef        lint
-static const char rcsid_init_et_c[] =
-    "$Header$";
-#endif
-
-extern char *malloc(), *realloc();
+static const char rcsid[] = "$Id$";
 
 struct foobar {
     struct et_list etl;
     struct error_table et;
 };
 
-extern struct et_list * _et_list;
+extern struct et_list *_et_list;
 
-int init_error_table(msgs, base, count)
-    const char * const * msgs;
-    int base;
-    int count;
+int init_error_table(const char *const *msgs, int base, int count)
 {
     struct foobar * new_et;
 
     if (!base || !count || !msgs)
        return 0;
 
-    new_et = (struct foobar *) malloc(sizeof(struct foobar));
+    new_et = malloc(sizeof(struct foobar));
     if (!new_et)
        return errno;   /* oops */
     new_et->etl.table = &new_et->et;
This page took 0.087949 seconds and 4 git commands to generate.