mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
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
This commit is contained in:
parent
c8926138d1
commit
1603f64771
11
lib/dict.c
11
lib/dict.c
@ -80,11 +80,6 @@
|
|||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
#define _MPRINTF_REPLACE /* use our functions only */
|
||||||
#include <curl/mprintf.h>
|
#include <curl/mprintf.h>
|
||||||
|
|
||||||
CURLcode Curl_dict_done(struct connectdata *conn)
|
|
||||||
{
|
|
||||||
return CURLE_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
CURLcode Curl_dict(struct connectdata *conn)
|
CURLcode Curl_dict(struct connectdata *conn)
|
||||||
{
|
{
|
||||||
int nth;
|
int nth;
|
||||||
@ -129,10 +124,10 @@ CURLcode Curl_dict(struct connectdata *conn)
|
|||||||
failf(data, "lookup word is missing\n");
|
failf(data, "lookup word is missing\n");
|
||||||
}
|
}
|
||||||
if ((database == NULL) || (*database == (char)0)) {
|
if ((database == NULL) || (*database == (char)0)) {
|
||||||
database = "!";
|
database = (char *)"!";
|
||||||
}
|
}
|
||||||
if ((strategy == NULL) || (*strategy == (char)0)) {
|
if ((strategy == NULL) || (*strategy == (char)0)) {
|
||||||
strategy = ".";
|
strategy = (char *)".";
|
||||||
}
|
}
|
||||||
if ((nthdef == NULL) || (*nthdef == (char)0)) {
|
if ((nthdef == NULL) || (*nthdef == (char)0)) {
|
||||||
nth = 0;
|
nth = 0;
|
||||||
@ -182,7 +177,7 @@ CURLcode Curl_dict(struct connectdata *conn)
|
|||||||
failf(data, "lookup word is missing\n");
|
failf(data, "lookup word is missing\n");
|
||||||
}
|
}
|
||||||
if ((database == NULL) || (*database == (char)0)) {
|
if ((database == NULL) || (*database == (char)0)) {
|
||||||
database = "!";
|
database = (char *)"!";
|
||||||
}
|
}
|
||||||
if ((nthdef == NULL) || (*nthdef == (char)0)) {
|
if ((nthdef == NULL) || (*nthdef == (char)0)) {
|
||||||
nth = 0;
|
nth = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user