|
@@ -149,7 +149,7 @@ static /*inline*/ char* parse_to_param(char *buffer, char *end,
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to_param : "
|
|
LOG( L_ERR , "ERROR: parse_to_param : "
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case '\r':
|
|
case '\r':
|
|
@@ -187,7 +187,7 @@ static /*inline*/ char* parse_to_param(char *buffer, char *end,
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to_param : "
|
|
LOG( L_ERR , "ERROR: parse_to_param : "
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -206,7 +206,7 @@ static /*inline*/ char* parse_to_param(char *buffer, char *end,
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to_param : "
|
|
LOG( L_ERR , "ERROR: parse_to_param : "
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -231,7 +231,7 @@ static /*inline*/ char* parse_to_param(char *buffer, char *end,
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to_param :"
|
|
LOG( L_ERR , "ERROR: parse_to_param :"
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status,(int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -251,7 +251,7 @@ static /*inline*/ char* parse_to_param(char *buffer, char *end,
|
|
else {
|
|
else {
|
|
LOG( L_ERR , "ERROR: parse_to_param : unexpected "
|
|
LOG( L_ERR , "ERROR: parse_to_param : unexpected "
|
|
"char [%c] in status %d: <<%.*s>> .\n",
|
|
"char [%c] in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
@@ -280,7 +280,7 @@ static /*inline*/ char* parse_to_param(char *buffer, char *end,
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to_param :"
|
|
LOG( L_ERR , "ERROR: parse_to_param :"
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -313,7 +313,7 @@ static /*inline*/ char* parse_to_param(char *buffer, char *end,
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to_param :"
|
|
LOG( L_ERR , "ERROR: parse_to_param :"
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -348,7 +348,7 @@ static /*inline*/ char* parse_to_param(char *buffer, char *end,
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to_param : "
|
|
LOG( L_ERR , "ERROR: parse_to_param : "
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -383,7 +383,7 @@ static /*inline*/ char* parse_to_param(char *buffer, char *end,
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to_param : "
|
|
LOG( L_ERR , "ERROR: parse_to_param : "
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -412,7 +412,7 @@ static /*inline*/ char* parse_to_param(char *buffer, char *end,
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to_param : "
|
|
LOG( L_ERR , "ERROR: parse_to_param : "
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
"unexpected char [%c] in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -526,7 +526,7 @@ char* parse_to(char* buffer, char *end, struct to_body *to_b)
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
"in status %d: <<%.*s>> .\n",
|
|
"in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case '\r':
|
|
case '\r':
|
|
@@ -550,7 +550,7 @@ char* parse_to(char* buffer, char *end, struct to_body *to_b)
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
"in status %d: <<%.*s>> .\n",
|
|
"in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -569,7 +569,7 @@ char* parse_to(char* buffer, char *end, struct to_body *to_b)
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
"in status %d: <<%.*s>> .\n",
|
|
"in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -596,7 +596,7 @@ char* parse_to(char* buffer, char *end, struct to_body *to_b)
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
"in status %d: <<%.*s>> .\n",
|
|
"in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -620,7 +620,7 @@ char* parse_to(char* buffer, char *end, struct to_body *to_b)
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
"in status %d: <<%.*s>> .\n",
|
|
"in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -642,7 +642,7 @@ char* parse_to(char* buffer, char *end, struct to_body *to_b)
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
"in status %d: <<%.*s>> .\n",
|
|
"in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
@@ -669,7 +669,7 @@ char* parse_to(char* buffer, char *end, struct to_body *to_b)
|
|
default:
|
|
default:
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
LOG( L_ERR , "ERROR: parse_to : unexpected char [%c] "
|
|
"in status %d: <<%.*s>> .\n",
|
|
"in status %d: <<%.*s>> .\n",
|
|
- *tmp,status, tmp-buffer, buffer);
|
|
|
|
|
|
+ *tmp,status, (int)(tmp-buffer), buffer);
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
break;
|
|
break;
|