summaryrefslogtreecommitdiff
path: root/lib/dict.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-14 08:18:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-14 08:18:35 +0000
commit1603f64771d09d43ef58bca455f5f18e4dc65cae (patch)
tree837edf9bee9e4daf8e8c447ec1457e8cd5c67c26 /lib/dict.c
parentc8926138d12d2c074e52093db83cea3350fdab30 (diff)
downloadcurl-1603f64771d09d43ef58bca455f5f18e4dc65cae.tar.gz
removed the *done() function as it served no purpose, added type casts when
converting from 'const char *' to 'char *' to please my picky compiler options
Diffstat (limited to 'lib/dict.c')
-rw-r--r--lib/dict.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/dict.c b/lib/dict.c
index 53c245947..ff0e90541 100644
--- a/lib/dict.c
+++ b/lib/dict.c
@@ -80,11 +80,6 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
-CURLcode Curl_dict_done(struct connectdata *conn)
-{
- return CURLE_OK;
-}
-
CURLcode Curl_dict(struct connectdata *conn)
{
int nth;
@@ -129,10 +124,10 @@ CURLcode Curl_dict(struct connectdata *conn)
failf(data, "lookup word is missing\n");
}
if ((database == NULL) || (*database == (char)0)) {
- database = "!";
+ database = (char *)"!";
}
if ((strategy == NULL) || (*strategy == (char)0)) {
- strategy = ".";
+ strategy = (char *)".";
}
if ((nthdef == NULL) || (*nthdef == (char)0)) {
nth = 0;
@@ -182,7 +177,7 @@ CURLcode Curl_dict(struct connectdata *conn)
failf(data, "lookup word is missing\n");
}
if ((database == NULL) || (*database == (char)0)) {
- database = "!";
+ database = (char *)"!";
}
if ((nthdef == NULL) || (*nthdef == (char)0)) {
nth = 0;