mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-25 02:55:15 +00:00
Fixed issues with difftime and removed unused parts of query struct.
This commit is contained in:
parent
555a3cbfe2
commit
c903203a24
@ -85,14 +85,12 @@ struct query {
|
||||
char name[QUERY_NAME_SIZE];
|
||||
unsigned short type;
|
||||
unsigned short rcode;
|
||||
unsigned short id;
|
||||
int id; /* id < 0: unusued */
|
||||
struct sockaddr_storage destination;
|
||||
socklen_t dest_len;
|
||||
struct sockaddr_storage from;
|
||||
socklen_t fromlen;
|
||||
unsigned short id2;
|
||||
struct sockaddr_storage from2;
|
||||
socklen_t fromlen2;
|
||||
struct timeval time_recv;
|
||||
};
|
||||
|
||||
enum connection {
|
||||
@ -118,6 +116,8 @@ void read_password(char*, size_t);
|
||||
|
||||
int check_topdomain(char *, char **);
|
||||
|
||||
extern double difftime(time_t, time_t);
|
||||
|
||||
#if defined(WINDOWS32) || defined(ANDROID)
|
||||
#ifndef ANDROID
|
||||
int inet_aton(const char *cp, struct in_addr *inp);
|
||||
|
Loading…
Reference in New Issue
Block a user