neutrino: fix 32<->64bit format string warnings

use portable C99 format string macros for 64bit types to
fix many warnings when compiling for 64bit architectures,
add some (int) casts for size_t
This commit is contained in:
Stefan Seyfried
2012-11-03 13:56:26 +01:00
committed by Jacek Jendrzej
parent 9be5730183
commit 4dbeb3a31e
40 changed files with 198 additions and 225 deletions

View File

@@ -2,6 +2,8 @@
| Neutrino-GUI - DBoxII-Project
|
| Copyright (C) 2004 by Sanaia <sanaia at freenet dot de>
| Copyright (C) 2010-2012 Stefan Seyfried
|
| netfile - remote file access mapper
|
|
@@ -400,7 +402,7 @@ int request_file(URL *url)
/* if we have a entity, announce it to the server */
if(url->entity[0])
{
snprintf(str, sizeof(str)-1, "Content-Length: %d\r\n", strlen(url->entity));
snprintf(str, sizeof(str)-1, "Content-Length: %d\r\n", (int)strlen(url->entity));
dprintf(stderr, "> %s", str);
send(url->fd, str, strlen(str), 0);
}