summaryrefslogtreecommitdiff
path: root/pr.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-03-24 18:47:23 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-03-24 19:52:16 -0700
commit42ee120e8c49c5f9aaba35689e09f9ecef407758 (patch)
tree68d73306595d0556be18cfaad64243b23f4a2b4d /pr.c
parentc7c7197d265a299c82c6629fba867730aad81375 (diff)
Fix gcc, sparse & lint warnings
cppsetup.c:74:9: warning: Using plain integer as NULL pointer parse.c: In function `gobble': parse.c:94: warning: int format, long int arg (arg 2) parse.c: In function `find_includes': parse.c:641: warning: int format, long int arg (arg 2) parse.c:664: warning: int format, long int arg (arg 2) parse.c:677: warning: int format, long int arg (arg 2) parse.c:684: warning: int format, long int arg (arg 2) pr.c: In function `add_include': pr.c:57: warning: int format, long int arg (arg 4) pr.c:59: warning: int format, long int arg (arg 3) declared global, could be static sig_act main.c(142) predefs main.c:imakemdep.h(51) Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'pr.c')
-rw-r--r--pr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pr.c b/pr.c
index dd9ee6e..4afffd6 100644
--- a/pr.c
+++ b/pr.c
@@ -53,10 +53,10 @@ add_include(struct filepointer *filep, struct inclist *file,
if (failOK)
return;
if (file != file_red)
- warning("%s (reading %s, line %d): ",
+ warning("%s (reading %s, line %ld): ",
file_red->i_file, file->i_file, filep->f_line);
else
- warning("%s, line %d: ", file->i_file, filep->f_line);
+ warning("%s, line %ld: ", file->i_file, filep->f_line);
warning1("cannot find include file \"%s\"\n", include);
show_where_not = TRUE;
newfile = inc_path(file->i_file, include, type);