Silence WARNS=2 and BDECFLAGS on alpha and i386
MFC After: 1 week
This commit is contained in:
parent
692ad02bcd
commit
0a26b6bbc0
@ -3,4 +3,6 @@
|
||||
PROG= setfacl
|
||||
SRCS= file.c mask.c merge.c remove.c setfacl.c util.c
|
||||
|
||||
WARNS= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -59,7 +59,7 @@ get_acl_from_file(const char *filename)
|
||||
err(EX_OSERR, "fopen() %s failed", filename);
|
||||
}
|
||||
|
||||
fread(buf, sizeof(buf), 1, file);
|
||||
fread(buf, sizeof(buf), (size_t)1, file);
|
||||
if (ferror(file)) {
|
||||
fclose(file);
|
||||
err(EX_USAGE, "error reading from %s", filename);
|
||||
|
@ -173,7 +173,7 @@ main(int argc, char *argv[])
|
||||
err(EX_USAGE, "cannot have more than one stdin");
|
||||
have_stdin = 1;
|
||||
bzero(&filename, sizeof(filename));
|
||||
while (fgets(filename, sizeof(filename), stdin)) {
|
||||
while (fgets(filename, (int)sizeof(filename), stdin)) {
|
||||
/* remove the \n */
|
||||
filename[strlen(filename) - 1] = '\0';
|
||||
add_filename(filename);
|
||||
|
@ -3,4 +3,6 @@
|
||||
|
||||
PROG= sleep
|
||||
|
||||
WARNS= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -52,6 +52,7 @@ static const char rcsid[] =
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main __P((int, char *[]));
|
||||
void usage __P((void));
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user