diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-14 06:55:58 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-14 06:55:58 +0000 |
commit | b94f63a5c1a2254594572cfc6fd890258ddb5361 (patch) | |
tree | 82fc6cd8336f2fd0bf4e4f36b884d12695838825 /lib/libcom_err | |
parent | 4710cee5ae9d061cf473bea056acdd4b8c8ce7c9 (diff) |
lean up lint & compile warnings
Diffstat (limited to 'lib/libcom_err')
-rw-r--r-- | lib/libcom_err/error_message.c | 10 | ||||
-rw-r--r-- | lib/libcom_err/et_name.c | 9 |
2 files changed, 11 insertions, 8 deletions
diff --git a/lib/libcom_err/error_message.c b/lib/libcom_err/error_message.c index e74c212a9cb..2a8bd672e8b 100644 --- a/lib/libcom_err/error_message.c +++ b/lib/libcom_err/error_message.c @@ -1,4 +1,4 @@ -/* $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 @@ -22,10 +22,12 @@ #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]; @@ -41,8 +43,8 @@ error_message (code) 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) diff --git a/lib/libcom_err/et_name.c b/lib/libcom_err/et_name.c index 3fde10ad72c..a3375bc17e4 100644 --- a/lib/libcom_err/et_name.c +++ b/lib/libcom_err/et_name.c @@ -1,4 +1,4 @@ -/* $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 @@ -23,7 +23,7 @@ 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[] = @@ -32,9 +32,10 @@ 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; |