Fixed some warnings.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2187 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2006-01-18 03:00:45 +00:00
parent 626383b095
commit e8141b841a
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -21,6 +21,8 @@
#include "races.h" #include "races.h"
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h>
#include <stddef.h>
#include <assert.h> #include <assert.h>
int NPCNumberPhrase (int number, UNICODE **ptrack); int NPCNumberPhrase (int number, UNICODE **ptrack);
@@ -281,7 +283,7 @@ construct_response (UNICODE *buf, int R /* promoted from RESPONSE_REF */, ...)
// XXX: this should someday be changed so that the function takes // XXX: this should someday be changed so that the function takes
// the buffer size as an argument // the buffer size as an argument
if ((buf_start == shared_phrase_buf) && if ((buf_start == shared_phrase_buf) &&
(buf - shared_phrase_buf > sizeof (shared_phrase_buf))) (buf - shared_phrase_buf > (ptrdiff_t) sizeof (shared_phrase_buf)))
{ {
fprintf (stderr, "Error: shared_phrase_buf size exceeded," fprintf (stderr, "Error: shared_phrase_buf size exceeded,"
" please increase!\n"); " please increase!\n");
+1
View File
@@ -16,6 +16,7 @@
#include "port.h" #include "port.h"
#include <ctype.h>
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>