aboutsummaryrefslogtreecommitdiff
path: root/lib/strerror.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-04 18:59:05 +0000
committerYang Tse <yangsita@gmail.com>2008-09-04 18:59:05 +0000
commit3dcd2b82c4095e34342c8d0778d45d547c23b06d (patch)
treeda4bf9cc899604f034776bff1268e579640a70e6 /lib/strerror.c
parentc0f3e324479c6c0e66f0f45c43429041f5c5d34d (diff)
fix print formatting string directives
Diffstat (limited to 'lib/strerror.c')
-rw-r--r--lib/strerror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/strerror.c b/lib/strerror.c
index 032e2c747..f1d22e143 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2004 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2004 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -720,7 +720,7 @@ const char *Curl_idn_strerror (struct connectdata *conn, int err)
str = "dlopen() error";
break;
default:
- snprintf(buf, max, "error %d", (int)err);
+ snprintf(buf, max, "error %d", err);
str = NULL;
break;
}