mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
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:
committed by
Jacek Jendrzej
parent
9be5730183
commit
4dbeb3a31e
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user