Prefix exported functions from client.c

This commit is contained in:
Erik Ekman 2014-06-09 18:11:16 +02:00
parent fbb5a49cf3
commit 4d7678dc5b
3 changed files with 10 additions and 10 deletions

View File

@ -168,7 +168,7 @@ client_set_password(const char *cp)
} }
void void
set_qtype(char *qtype) client_set_qtype(char *qtype)
{ {
if (!strcasecmp(qtype, "NULL")) if (!strcasecmp(qtype, "NULL"))
do_qtype = T_NULL; do_qtype = T_NULL;
@ -185,7 +185,7 @@ set_qtype(char *qtype)
} }
char * char *
get_qtype() client_get_qtype()
{ {
char *c = "UNDEFINED"; char *c = "UNDEFINED";
@ -200,7 +200,7 @@ get_qtype()
} }
void void
set_downenc(char *encoding) client_set_downenc(char *encoding)
{ {
if (!strcasecmp(encoding, "base32")) if (!strcasecmp(encoding, "base32"))
downenc = 'T'; downenc = 'T';
@ -1917,7 +1917,7 @@ handshake_qtype_autodetect(int dns_fd)
highestworking = qtypenum; highestworking = qtypenum;
#if 0 #if 0
fprintf(stderr, " Type %s timeout %d works\n", fprintf(stderr, " Type %s timeout %d works\n",
get_qtype(), timeout); client_get_qtype(), timeout);
#endif #endif
break; break;
/* try others with longer timeout */ /* try others with longer timeout */
@ -2379,7 +2379,7 @@ client_handshake(int dns_fd, int raw_mode, int autodetect_frag_size, int fragsiz
} }
} }
fprintf(stderr, "Using DNS type %s queries\n", get_qtype()); fprintf(stderr, "Using DNS type %s queries\n", client_get_qtype());
r = handshake_version(dns_fd, &seed); r = handshake_version(dns_fd, &seed);
if (r) { if (r) {

View File

@ -27,9 +27,9 @@ const char *client_get_raw_addr();
void client_set_nameserver(struct sockaddr_storage *, int); void client_set_nameserver(struct sockaddr_storage *, int);
void client_set_topdomain(const char *cp); void client_set_topdomain(const char *cp);
void client_set_password(const char *cp); void client_set_password(const char *cp);
void set_qtype(char *qtype); void client_set_qtype(char *qtype);
char *get_qtype(); char *client_get_qtype();
void set_downenc(char *encoding); void client_set_downenc(char *encoding);
void client_set_selecttimeout(int select_timeout); void client_set_selecttimeout(int select_timeout);
void client_set_lazymode(int lazy_mode); void client_set_lazymode(int lazy_mode);
void client_set_hostname_maxlen(int i); void client_set_hostname_maxlen(int i);

View File

@ -249,10 +249,10 @@ main(int argc, char **argv)
pidfile = optarg; pidfile = optarg;
break; break;
case 'T': case 'T':
set_qtype(optarg); client_set_qtype(optarg);
break; break;
case 'O': /* not -D, is Debug in server */ case 'O': /* not -D, is Debug in server */
set_downenc(optarg); client_set_downenc(optarg);
break; break;
case 'L': case 'L':
lazymode = atoi(optarg); lazymode = atoi(optarg);