#ifdef DEBUGBUILD
if(size * nmemb > (size_t)CURL_MAX_HTTP_HEADER) {
- warnf(per->config->global, "Header data exceeds single call write "
- "limit!");
+ warnf(per->config->global, "Header data exceeds single call write limit");
return CURL_WRITEFUNC_ERROR;
}
#endif
DEBUGASSERT(config);
global = config->global;
if(!fname || !*fname) {
- warnf(global, "Remote filename has no length!");
+ warnf(global, "Remote filename has no length");
return FALSE;
}
if(config->show_headers) {
if(bytes > (size_t)CURL_MAX_HTTP_HEADER) {
warnf(config->global, "Header data size exceeds single call write "
- "limit!");
+ "limit");
return CURL_WRITEFUNC_ERROR;
}
}
else {
if(bytes > (size_t)CURL_MAX_WRITE_SIZE) {
- warnf(config->global, "Data size exceeds single call write limit!");
+ warnf(config->global, "Data size exceeds single call write limit");
return CURL_WRITEFUNC_ERROR;
}
}
else
out = stdout;
if(!out)
- warnf(config, "Failed to open %s to write libcurl code!", o);
+ warnf(config, "Failed to open %s to write libcurl code", o);
else {
int i;
const char *c;
/* verify that this is a fine type specifier */
if(2 != sscanf(type, "%127[^/ ]/%127[^;, \n]", type_major, type_minor)) {
- warnf(config->global, "Illegally formatted content-type field!");
+ warnf(config->global, "Illegally formatted content-type field");
curl_slist_free_all(headers);
return -1; /* illegal content-type syntax! */
}
sep = *p;
*endpos = '\0';
if(slist_append(&headers, hdr)) {
- errorf(config->global, "Out of memory for field header!");
+ errorf(config->global, "Out of memory for field header");
curl_slist_free_all(headers);
return -1;
}
else if(!name && !strcmp(contp, ")") && !literal_value) {
/* Ending a multipart. */
if(*mimecurrent == *mimeroot) {
- warnf(config->global, "no multipart to terminate!");
+ warnf(config->global, "no multipart to terminate");
goto fail;
}
*mimecurrent = (*mimecurrent)->parent;
SET_TOOL_MIME_PTR(part, name);
}
else {
- warnf(config->global, "Illegally formatted input field!");
+ warnf(config->global, "Illegally formatted input field");
goto fail;
}
err = 0;
/* for plain bytes, leave as-is */
break;
default:
- warnf(global, "unsupported %s unit. Use G, M, K or B!", which);
+ warnf(global, "unsupported %s unit. Use G, M, K or B", which);
return PARAM_BAD_USE;
}
*value_out = value;
case 'z': /* --libcurl */
#ifdef CURL_DISABLE_LIBCURL_OPTION
warnf(global,
- "--libcurl option was disabled at build-time!");
+ "--libcurl option was disabled at build-time");
return PARAM_OPTION_UNKNOWN;
#else
GetStr(&global->libcurl, nextarg);
#ifdef CURLDEBUG
global->test_event_based = toggle;
#else
- warnf(global, "--test-event is ignored unless a debug build!");
+ warnf(global, "--test-event is ignored unless a debug build");
#endif
break;
case 'M': /* --unix-socket */
bool use_stdin = !strcmp(&nextarg[1], "-");
FILE *file = use_stdin?stdin:fopen(&nextarg[1], FOPEN_READTEXT);
if(!file)
- warnf(global, "Failed to open %s!", &nextarg[1]);
+ warnf(global, "Failed to open %s", &nextarg[1]);
else {
err = file2memory(&string, &len, file);
if(!err && string) {
}
warnf(global,
"A specified range MUST include at least one dash (-). "
- "Appending one for you!");
+ "Appending one for you");
msnprintf(buffer, sizeof(buffer), "%" CURL_FORMAT_CURL_OFF_T "-", off);
Curl_safefree(config->range);
config->range = strdup(buffer);
result = get_url_file_name(&per->outfile, per->this_url);
if(result) {
errorf(global, "Failed to extract a sensible file name"
- " from the URL to use for storage!");
+ " from the URL to use for storage");
break;
}
if(!*per->outfile && !config->content_disposition) {
- errorf(global, "Remote file name has no length!");
+ errorf(global, "Remote file name has no length");
result = CURLE_WRITE_ERROR;
break;
}
Curl_safefree(storefile);
if(result) {
/* bad globbing */
- warnf(global, "bad output glob!");
+ warnf(global, "bad output glob");
break;
}
if(!*per->outfile) {
- warnf(global, "output glob produces empty string!");
+ warnf(global, "output glob produces empty string");
result = CURLE_WRITE_ERROR;
break;
}
warnf(global,
"Using --anyauth or --proxy-anyauth with upload from stdin"
" involves a big risk of it not working. Use a temporary"
- " file or a fixed auth type instead!");
+ " file or a fixed auth type instead");
}
DEBUGASSERT(per->infdopen == FALSE);
my_setopt(curl, CURLOPT_HTTP09_ALLOWED,
config->http09_allowed ? 1L : 0L);
if(result) {
- errorf(global, "HTTP/0.9 is not supported in this build!");
+ errorf(global, "HTTP/0.9 is not supported in this build");
return result;
}
break;
}
else
- warnf(global, "Couldn't find a known_hosts file!");
+ warnf(global, "Couldn't find a known_hosts file");
}
if(config->no_body || config->remote_time) {
break;
default:
warnf(operation->global, "%s:%d: warning: '%s' uses unquoted "
- "whitespace in the line that may cause side-effects!",
+ "whitespace in the line that may cause side-effects",
filename, lineno, option);
}
}