aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2011-09-23 03:21:50 +0200
committerGuenter Knauf <lists@gknw.net>2011-09-23 03:21:50 +0200
commitdafa2fc9442825dc5256d65f5af7ccb6fbbb78fd (patch)
tree4c8b27b7f4d693bdd15663e809306e456e98f521
parentef3f1f314631eb9bb5843c78349ec685aa5ef4a6 (diff)
Fixed scanf format for WORD = unsigned short.
-rw-r--r--docs/examples/synctime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/synctime.c b/docs/examples/synctime.c
index 70b84c326..14d77de27 100644
--- a/docs/examples/synctime.c
+++ b/docs/examples/synctime.c
@@ -147,7 +147,7 @@ size_t SyncTime_CURL_WriteHeader(void *ptr, size_t size, size_t nmemb,
TmpStr1 & 2? */
AutoSyncTime = 0;
else {
- RetVal = sscanf ((char *)(ptr), "Date: %s %d %s %d %d:%d:%d",
+ RetVal = sscanf ((char *)(ptr), "Date: %s %hu %s %hu %hu:%hu:%hu",
TmpStr1, &SYSTime.wDay, TmpStr2, &SYSTime.wYear,
&SYSTime.wHour, &SYSTime.wMinute, &SYSTime.wSecond);