fix most of the fixable bitchings of MIPSpro compiler (complainer?)

This commit is contained in:
tg
2008-03-28 13:28:33 +00:00
parent aacc0b2179
commit 66f433ace0
2 changed files with 6 additions and 7 deletions

5
shf.c
View File

@@ -2,7 +2,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/shf.c,v 1.16 2007/10/25 15:23:10 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/shf.c,v 1.17 2008/03/28 13:28:33 tg Exp $");
/* flags to shf_emptybuf() */
#define EB_READSW 0x01 /* about to switch to reading */
@@ -676,8 +676,7 @@ shf_snprintf(char *buf, int bsize, const char *fmt, ...)
int n;
if (!buf || bsize <= 0)
internal_errorf("shf_snprintf: buf %lx, bsize %d",
(long)buf, bsize);
internal_errorf("shf_snprintf: buf %p, bsize %d", buf, bsize);
shf_sopen(buf, bsize, SHF_WR, &shf);
va_start(args, fmt);