-/* $OpenBSD: error_message.c,v 1.2 1996/11/11 09:49:47 downsj Exp $ */
+/* $OpenBSD: error_message.c,v 1.3 1996/12/14 06:55:56 tholo Exp $ */
/*-
* Copyright 1987, 1988 by the Student Information Processing Board
#include <errno.h>
#include "error_table.h"
+#ifndef lint
static const char rcsid[] =
- "$Id: error_message.c,v 1.2 1996/11/11 09:49:47 downsj Exp $";
+ "$OpenBSD: error_message.c,v 1.3 1996/12/14 06:55:56 tholo Exp $";
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";
+#endif
static char buffer[25];
int started = 0;
char *cp;
- offset = code & ((1<<ERRCODE_RANGE)-1);
- table_num = code - offset;
+ offset = (int)(code & ((1<<ERRCODE_RANGE)-1));
+ table_num = (int)code - offset;
if (!table_num) {
#ifdef HAS_SYS_ERRLIST
if (offset < sys_nerr)
-/* $OpenBSD: et_name.c,v 1.1 1996/11/11 04:55:04 downsj Exp $ */
+/* $OpenBSD: et_name.c,v 1.2 1996/12/14 06:55:57 tholo Exp $ */
/*-
* Copyright 1987, 1988 by the Student Information Processing Board
static const char copyright[] =
"Copyright 1987,1988 by Student Information Processing Board, Massachusetts Institute of Technology";
static const char rcsid_et_name_c[] =
- "$Id: et_name.c,v 1.1 1996/11/11 04:55:04 downsj Exp $";
+ "$Id: et_name.c,v 1.2 1996/12/14 06:55:57 tholo Exp $";
#endif
static const char char_set[] =
static char buf[6];
const char *
-error_table_name(num)
- int num;
+error_table_name(n)
+ int n;
{
+ unsigned num = n;
int ch;
int i;
char *p;