another pointer to long conversion (trunk only)

botl.c conversions. All the ports seem to be using genl_status_update(),
rather than a window port specific version, so botl.c was the only place
this had to be adjusted.

Also a uudecode cast for the result of strlen, since it isn't using
config.h
This commit is contained in:
nethack.allison
2006-07-09 16:42:21 +00:00
parent 003aea0ce3
commit dafb1c089e
2 changed files with 17 additions and 13 deletions

View File

@@ -37,6 +37,10 @@
* appear to be stripping trailing blanks.
*
* Modified 28 February 2002 for use on WIN32 systems with Microsoft C.
*
* Modified 08 July 2006 to cast strlen() result to int to suppress a
* warning on platforms where size_t > sizeof(int).
*
*/
#ifndef lint
@@ -192,7 +196,7 @@ FILE *out;
/* Calculate expected # of chars and pad if necessary */
expected = ((n+2)/3)<<2;
for (i = strlen(buf)-1; i <= expected; i++) buf[i] = ' ';
for (i = (int)strlen(buf)-1; i <= expected; i++) buf[i] = ' ';
bp = &buf[1];
while (n > 0) {