summaryrefslogtreecommitdiff
path: root/methods/server.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-02-27 01:26:29 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2014-03-13 13:58:45 +0100
commit3de8f956d5fcf023ab65f88579cd77121694d872 (patch)
tree153df3708907edcd74c517c591b905e17a772c01 /methods/server.h
parentd3e8fbb395f57954acd7a2095f02ce530a05ec6a (diff)
StartPos is always positive for http/https
server.cc: In member function ‘bool ServerState::HeaderLine(std::string)’: server.cc:198:72: warning: format ‘%llu’ expects argument of type ‘long long unsigned int*’, but argument 3 has type ‘long long int*’ [-Wformat=] else if (sscanf(Val.c_str(),"bytes %llu-%*u/%llu",&StartPos,&Size) != 2) Git-Dch: Ignore Reported-By: gcc -Wpedantic
Diffstat (limited to 'methods/server.h')
-rw-r--r--methods/server.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/server.h b/methods/server.h
index f1db9adf7..b4870698f 100644
--- a/methods/server.h
+++ b/methods/server.h
@@ -32,7 +32,7 @@ struct ServerState
// These are some statistics from the last parsed header lines
unsigned long long Size;
- signed long long StartPos;
+ unsigned long long StartPos;
time_t Date;
bool HaveContent;
enum {Chunked,Stream,Closes} Encoding;