diff --git a/src/client.c b/src/client.c index 557d811..66c3ef2 100644 --- a/src/client.c +++ b/src/client.c @@ -168,7 +168,7 @@ client_set_password(const char *cp) } void -set_qtype(char *qtype) +client_set_qtype(char *qtype) { if (!strcasecmp(qtype, "NULL")) do_qtype = T_NULL; @@ -185,7 +185,7 @@ set_qtype(char *qtype) } char * -get_qtype() +client_get_qtype() { char *c = "UNDEFINED"; @@ -200,7 +200,7 @@ get_qtype() } void -set_downenc(char *encoding) +client_set_downenc(char *encoding) { if (!strcasecmp(encoding, "base32")) downenc = 'T'; @@ -1917,7 +1917,7 @@ handshake_qtype_autodetect(int dns_fd) highestworking = qtypenum; #if 0 fprintf(stderr, " Type %s timeout %d works\n", - get_qtype(), timeout); + client_get_qtype(), timeout); #endif break; /* 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); if (r) { diff --git a/src/client.h b/src/client.h index 874dd6c..69687d1 100644 --- a/src/client.h +++ b/src/client.h @@ -27,9 +27,9 @@ const char *client_get_raw_addr(); void client_set_nameserver(struct sockaddr_storage *, int); void client_set_topdomain(const char *cp); void client_set_password(const char *cp); -void set_qtype(char *qtype); -char *get_qtype(); -void set_downenc(char *encoding); +void client_set_qtype(char *qtype); +char *client_get_qtype(); +void client_set_downenc(char *encoding); void client_set_selecttimeout(int select_timeout); void client_set_lazymode(int lazy_mode); void client_set_hostname_maxlen(int i); diff --git a/src/iodine.c b/src/iodine.c index 4d7c1ca..2f24889 100644 --- a/src/iodine.c +++ b/src/iodine.c @@ -249,10 +249,10 @@ main(int argc, char **argv) pidfile = optarg; break; case 'T': - set_qtype(optarg); + client_set_qtype(optarg); break; case 'O': /* not -D, is Debug in server */ - set_downenc(optarg); + client_set_downenc(optarg); break; case 'L': lazymode = atoi(optarg);