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

Fix off_t printf warning.

parent 783230ff
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -1499,7 +1499,7 @@ static off_t sock_sendfile(http_session_t *session,char *path, off_t start, off_
else {
if(start || end) {
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);
return(0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment