tool: wrap lines longer than 79 columns
... to avoid a build failure when configured with --enable-debug
This commit is contained in:
parent
48b5374e65
commit
921d195187
@ -119,8 +119,8 @@ size_t tool_write_cb(void *buffer, size_t sz, size_t nmemb, void *userdata)
|
|||||||
/* open file for writing */
|
/* open file for writing */
|
||||||
file = fopen(outs->filename, "wb");
|
file = fopen(outs->filename, "wb");
|
||||||
if(!file) {
|
if(!file) {
|
||||||
warnf(config->global, "Failed to create the file %s: %s\n", outs->filename,
|
warnf(config->global, "Failed to create the file %s: %s\n",
|
||||||
strerror(errno));
|
outs->filename, strerror(errno));
|
||||||
return failure;
|
return failure;
|
||||||
}
|
}
|
||||||
outs->s_isreg = TRUE;
|
outs->s_isreg = TRUE;
|
||||||
|
@ -206,7 +206,8 @@ int formparse(struct OperationConfig *config,
|
|||||||
/* verify that this is a fine type specifier */
|
/* verify that this is a fine type specifier */
|
||||||
if(2 != sscanf(type, "%127[^/]/%127[^;,\n]",
|
if(2 != sscanf(type, "%127[^/]/%127[^;,\n]",
|
||||||
type_major, type_minor)) {
|
type_major, type_minor)) {
|
||||||
warnf(config->global, "Illegally formatted content-type field!\n");
|
warnf(config->global,
|
||||||
|
"Illegally formatted content-type field!\n");
|
||||||
Curl_safefree(contents);
|
Curl_safefree(contents);
|
||||||
FreeMultiInfo(&multi_start, &multi_current);
|
FreeMultiInfo(&multi_start, &multi_current);
|
||||||
return 2; /* illegal content-type syntax! */
|
return 2; /* illegal content-type syntax! */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user