Fixed 64-bit compiler warnings

SVN revision: 2037
This commit is contained in:
Stefan Ritt 2008-02-11 12:48:48 +00:00
parent eae65a7ad0
commit 207e29278a

View File

@ -26082,10 +26082,9 @@ void decode_post(char *logbook, LOGBOOK * lbs, const char *string, const char *b
string = strstr(p, boundary) + strlen(boundary); string = strstr(p, boundary) + strlen(boundary);
if (stricmp(item, "text") == 0) { if (stricmp(item, "text") == 0) {
if ((int) string - (int) p > TEXT_SIZE) { if (string - p > TEXT_SIZE) {
sprintf(str, sprintf(str,
"Error: Entry text too big (%lu bytes). Please increase TEXT_SIZE and recompile elogd\n", "Error: Entry text too big. Please increase TEXT_SIZE and recompile elogd\n");
(unsigned long) ((int) string - (int) p));
show_error(str); show_error(str);
return; return;
} }
@ -27320,7 +27319,7 @@ void server_loop(void)
if (pend && *pend) { if (pend && *pend) {
memmove(net_buffer, pend, strlen(pend) + 1); memmove(net_buffer, pend, strlen(pend) + 1);
more_requests = 1; more_requests = 1;
len -= (int) pend - (int) net_buffer; len -= (pend - net_buffer);
} }
} while (more_requests); } while (more_requests);