Kill gcc -Wall warnings

This commit is contained in:
christos 1995-04-30 19:39:37 +00:00
parent 34e5f975f9
commit 60fe6da7c1
3 changed files with 8 additions and 8 deletions

View File

@ -36,7 +36,7 @@
#ifndef lint
static char *moduleid =
"@(#)$Id: ascmagic.c,v 1.6 1995/04/28 19:23:43 christos Exp $";
"@(#)$Id: ascmagic.c,v 1.7 1995/04/30 19:39:37 christos Exp $";
#endif /* lint */
/* an optimisation over plain strcmp() */
@ -47,7 +47,7 @@ ascmagic(buf, nbytes)
unsigned char *buf;
int nbytes; /* size actually read */
{
int i, isblock, has_escapes = 0;
int i, has_escapes = 0;
unsigned char *s;
char nbuf[HOWMANY+1]; /* one extra for terminating '\0' */
char *token;

View File

@ -40,7 +40,7 @@
#ifndef lint
static char *moduleid =
"@(#)$Id: print.c,v 1.7 1995/04/28 19:24:01 christos Exp $";
"@(#)$Id: print.c,v 1.8 1995/04/30 19:39:40 christos Exp $";
#endif /* lint */
#define SZOF(a) (sizeof(a) / sizeof(a[0]))
@ -58,7 +58,7 @@ struct magic *m;
m->offset);
if (m->flag & INDIR)
(void) fprintf(stderr, "(%s,%d),",
(void) fprintf(stderr, "(%s,%ld),",
(m->in.type >= 0 && m->in.type < SZOF(typ)) ?
typ[(unsigned char) m->in.type] :
"*bad*",
@ -69,7 +69,7 @@ struct magic *m;
typ[(unsigned char) m->type] :
"*bad*");
if (m->mask != ~0L)
(void) fprintf(stderr, " & %.8x", m->mask);
(void) fprintf(stderr, " & %.8lx", m->mask);
(void) fprintf(stderr, ",%c", m->reln);
@ -82,7 +82,7 @@ struct magic *m;
case LELONG:
case BESHORT:
case BELONG:
(void) fprintf(stderr, "%d", m->value.l);
(void) fprintf(stderr, "%ld", m->value.l);
break;
case STRING:
showstr(stderr, m->value.s, -1);

View File

@ -34,7 +34,7 @@
#ifndef lint
static char *moduleid =
"@(#)$Id: softmagic.c,v 1.7 1995/04/28 19:24:04 christos Exp $";
"@(#)$Id: softmagic.c,v 1.8 1995/04/30 19:39:41 christos Exp $";
#endif /* lint */
static int match __P((unsigned char *, int));
@ -273,7 +273,7 @@ long offset;
char *str;
int len;
{
(void) fprintf(stderr, "mget @%d: ", offset);
(void) fprintf(stderr, "mget @%ld: ", offset);
showstr(stderr, (char *) str, len);
(void) fputc('\n', stderr);
(void) fputc('\n', stderr);