Warning fixes

This commit is contained in:
Alexander S. Aganichev
2001-04-01 09:46:21 +00:00
parent c57e3b2863
commit f79327b384
9 changed files with 129 additions and 120 deletions

View File

@@ -34,7 +34,7 @@
char* CvtPrnstr(char* str, char* prn) {
int value;
uint value;
byte len=0;
char buf[256];
char* ptr=prn;
@@ -54,8 +54,8 @@ char* CvtPrnstr(char* str, char* prn) {
break;
case '#':
ptr++;
value = atoi(ptr);
buf[len++] = (byte)value;
value = (byte)atoi(ptr);
buf[len++] = value;
while(isdigit(*ptr) and *ptr)
ptr++;
break;

View File

@@ -148,7 +148,7 @@ void gareafile::replace_slashes(char **key) {
if(*p == '\\') {
int size = 1;
int chr = p[1];
uint chr = p[1];
if(isxdigit(p[1])) {
if(isxdigit(p[2])) {

View File

@@ -906,7 +906,7 @@ Line* SMBArea::make_dump_msg(Line*& lin, gmsg* msg, char* lng_head)
line = AddLineF(line, "Written : %s", buf);
stpcpy(buf, ctime((time_t *)&smsg.hdr.when_imported.time))[-1] = NUL;
line = AddLineF(line, "Imported : %s", buf);
line = AddLineF(line, "Number : %ld (%ld)", smsg.hdr.number, ftell(data->sid_fp) / sizeof(idxrec_t));
line = AddLineF(line, "Number : %ld (%ld)", smsg.hdr.number, (long)(ftell(data->sid_fp)/sizeof(idxrec_t)));
line = AddLineF(line, "Thread orig : %ld", smsg.hdr.thread_orig);
line = AddLineF(line, "Thread next : %ld", smsg.hdr.thread_next);
line = AddLineF(line, "Thread first : %ld", smsg.hdr.thread_first);

View File

@@ -487,6 +487,7 @@ _FP_fgets (char *buf, int n, FILE *stream)
return obp;
}
#if 0
/*
* A replacement strerror function that just returns the error code
*/
@@ -510,3 +511,4 @@ _FP_tempnam (char *dir, char *pfx)
{
return _FP_strdup (tmpnam (NULL));
}
#endif

View File

@@ -51,8 +51,10 @@ char * TOOLEXPORT _FP_fgets _ANSI_ARGS_((char *, int, FILE *));
char * TOOLEXPORT _FP_strpbrk _ANSI_ARGS_((char *, char *));
char * TOOLEXPORT _FP_strtok _ANSI_ARGS_((char *, char *));
char * TOOLEXPORT _FP_cutdir _ANSI_ARGS_((char *));
#if 0
char * TOOLEXPORT _FP_strerror _ANSI_ARGS_((int));
char * TOOLEXPORT _FP_tempnam _ANSI_ARGS_((char *, char *));
#endif
#ifdef __cplusplus
}