mirror of https://github.com/moparisthebest/curl
re-indented to use curl-standard source formatting
This commit is contained in:
parent
d85c21994f
commit
4b49b2e3cf
|
@ -254,8 +254,7 @@ curl_easy_strerror(CURLcode error)
|
|||
const char *
|
||||
curl_multi_strerror(CURLMcode error)
|
||||
{
|
||||
switch (error)
|
||||
{
|
||||
switch (error) {
|
||||
case CURLM_CALL_MULTI_PERFORM:
|
||||
return "please call curl_multi_perform() soon";
|
||||
|
||||
|
@ -284,8 +283,7 @@ curl_multi_strerror(CURLMcode error)
|
|||
const char *
|
||||
curl_share_strerror(CURLSHcode error)
|
||||
{
|
||||
switch (error)
|
||||
{
|
||||
switch (error) {
|
||||
case CURLSHE_OK:
|
||||
return "no error";
|
||||
|
||||
|
@ -314,8 +312,7 @@ get_winsock_error (int err, char *buf, size_t len)
|
|||
{
|
||||
char *p;
|
||||
|
||||
switch (err)
|
||||
{
|
||||
switch (err) {
|
||||
case WSAEINTR:
|
||||
p = "Call interrupted.";
|
||||
break;
|
||||
|
@ -524,13 +521,14 @@ const char *Curl_strerror(struct connectdata *conn, int err)
|
|||
#endif
|
||||
*(buf+max) = '\0';
|
||||
}
|
||||
else
|
||||
else {
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
if (!get_winsock_error (err, buf, max) &&
|
||||
!FormatMessage (FORMAT_MESSAGE_FROM_SYSTEM, NULL, err,
|
||||
LANG_NEUTRAL, buf, max, NULL))
|
||||
#endif
|
||||
snprintf(buf, max, "Unknown error %d (%#x)", err, err);
|
||||
}
|
||||
|
||||
/* strip trailing '\r\n' or '\n'. */
|
||||
if ((p = strrchr(buf,'\n')) != NULL && (p - buf) >= 2)
|
||||
|
|
Loading…
Reference in New Issue