diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2007-01-26 16:18:47 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2007-01-26 16:18:47 +0000 |
commit | 4f496f2f70890dc0af9bdf9d61732401ee0f23b8 (patch) | |
tree | 17bec4edbe4dc20ac11a5eb8666655ff667a86f0 | |
parent | d681bc7520b73933cab2d1176e69693770505e81 (diff) |
Use "%Od" instead of CURL_FORMAT_OFF_T for <curlx.h> functions.
-rw-r--r-- | src/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c index 4867d1a0e..a4626d42e 100644 --- a/src/main.c +++ b/src/main.c @@ -2200,7 +2200,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ "A specfied range MUST include at least one dash (-). " "Appending one for you!\n"); off = curlx_strtoofft(nextarg, NULL, 10); - snprintf(buffer, sizeof(buffer), CURL_FORMAT_OFF_T "-", off); + snprintf(buffer, sizeof(buffer), "%Od-", off); GetStr(&config->range, buffer); } else @@ -3253,7 +3253,7 @@ CURLcode _my_setopt(CURL *curl, const char *name, CURLoption tag, ...) } else { curl_off_t oval = va_arg(arg, curl_off_t); - snprintf(value, sizeof(value), "(curl_off_t)"CURL_FORMAT_OFF_T, oval); + snprintf(value, sizeof(value), "(curl_off_t)%Od", oval); ret = curl_easy_setopt(curl, tag, oval); } @@ -4268,8 +4268,7 @@ operate(struct Configurable *config, int argc, char *argv[]) /* We have written data to a output file, we truncate file */ if(!(config->conf&CONF_MUTE)) - fprintf(stderr, "Throwing away " CURL_FORMAT_OFF_T - " bytes\n", outs.bytes); + fprintf(stderr, "Throwing away %Od bytes\n", outs.bytes); fflush(outs.stream); /* truncate file at the position where we started appending */ #ifdef HAVE_FTRUNCATE |