mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-27 03:55:09 +00:00
Prefix exported functions from client.c
This commit is contained in:
parent
fbb5a49cf3
commit
4d7678dc5b
10
src/client.c
10
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) {
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user