projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
date and time created 83/02/11 15:44:43 by rrh
[unix-history]
/
usr
/
src
/
usr.bin
/
error
/
filter.c
diff --git
a/usr/src/usr.bin/error/filter.c
b/usr/src/usr.bin/error/filter.c
index
9a8ce76
..
07eaa0a
100644
(file)
--- a/
usr/src/usr.bin/error/filter.c
+++ b/
usr/src/usr.bin/error/filter.c
@@
-1,4
+1,4
@@
-static char *sccsid = "@(#)filter.c 1.
1
(Berkeley) %G%";
+static char *sccsid = "@(#)filter.c 1.
2
(Berkeley) %G%";
#include <stdio.h>
#include <ctype.h>
#include <pwd.h>
#include <stdio.h>
#include <ctype.h>
#include <pwd.h>
@@
-20,13
+20,13
@@
int lexsort();
getignored(auxname)
char *auxname;
{
getignored(auxname)
char *auxname;
{
- reg
ister
int i;
-
FILE *fyle;
-
char inbuffer[256];
-
int uid;
-
char filename[128];
-
char *username;
-
struct passwd *passwdentry;
+ reg int i;
+ FILE *fyle;
+ char inbuffer[256];
+ int uid;
+ char filename[128];
+ char *username;
+ struct passwd *passwdentry;
nignored = 0;
if (auxname == 0){ /* use the default */
nignored = 0;
if (auxname == 0){ /* use the default */
@@
-41,9
+41,9
@@
getignored(auxname)
return;
}
strcpy(filename, passwdentry->pw_dir);
return;
}
strcpy(filename, passwdentry->pw_dir);
- strcat(filename, ERRORNAME);
+
(void)
strcat(filename, ERRORNAME);
} else
} else
- strcpy(filename, auxname);
+
(void)
strcpy(filename, auxname);
#ifdef FULLDEBUG
printf("Opening file \"%s\" to read names to ignore.\n",
filename);
#ifdef FULLDEBUG
printf("Opening file \"%s\" to read names to ignore.\n",
filename);
@@
-72,7
+72,7
@@
getignored(auxname)
}
for (i=0; i < nignored && (fgets (inbuffer, 255, fyle) != NULL); i++){
names_ignored[i] = strsave(inbuffer);
}
for (i=0; i < nignored && (fgets (inbuffer, 255, fyle) != NULL); i++){
names_ignored[i] = strsave(inbuffer);
- substitute(names_ignored[i], '\n', '\0');
+
(void)
substitute(names_ignored[i], '\n', '\0');
}
qsort(names_ignored, nignored, sizeof *names_ignored, lexsort);
#ifdef FULLDEBUG
}
qsort(names_ignored, nignored, sizeof *names_ignored, lexsort);
#ifdef FULLDEBUG
@@
-92,9
+92,9
@@
int lexsort(cpp1, cpp2)
int search_ignore(key)
char *key;
{
int search_ignore(key)
char *key;
{
- reg
ister
int ub, lb;
- reg
ister
int halfway;
-
int order;
+ reg int ub, lb;
+ reg int halfway;
+ int order;
if (nignored == 0)
return(-1);
if (nignored == 0)
return(-1);
@@
-118,10
+118,10
@@
int search_ignore(key)
* Return the new categorization of the error class.
*/
Errorclass discardit(errorp)
* Return the new categorization of the error class.
*/
Errorclass discardit(errorp)
- reg
ister struct error_desc *
errorp;
+ reg
Eptr
errorp;
{
{
-
int language;
- reg
ister
int i;
+ int language;
+ reg int i;
Errorclass errorclass = errorp->error_e_class;
switch(errorclass){
Errorclass errorclass = errorp->error_e_class;
switch(errorclass){