Skip to content
Snippets Groups Projects
Commit b973a747 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix off_t printf warning.

parent 9c9d6a15
No related branches found
No related tags found
No related merge requests found
Pipeline #5662 passed
...@@ -1499,7 +1499,7 @@ static off_t sock_sendfile(http_session_t *session,char *path, off_t start, off_ ...@@ -1499,7 +1499,7 @@ static off_t sock_sendfile(http_session_t *session,char *path, off_t start, off_
else { else {
if(start || end) { if(start || end) {
if(lseek(file, start, SEEK_SET)==-1) { if(lseek(file, start, SEEK_SET)==-1) {
lprintf(LOG_WARNING,"%04d !ERROR %d seeking to position %lu in %s",session->socket,ERROR_VALUE,start,path); lprintf(LOG_WARNING,"%04d !ERROR %d seeking to position %" PRIuOFF " in %s",session->socket,ERROR_VALUE,start,path);
close(file); close(file);
return(0); return(0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment