*/
#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;