mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-25 11:05: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];
|
char name[QUERY_NAME_SIZE];
|
||||||
unsigned short type;
|
unsigned short type;
|
||||||
unsigned short rcode;
|
unsigned short rcode;
|
||||||
unsigned short id;
|
int id; /* id < 0: unusued */
|
||||||
struct sockaddr_storage destination;
|
struct sockaddr_storage destination;
|
||||||
socklen_t dest_len;
|
socklen_t dest_len;
|
||||||
struct sockaddr_storage from;
|
struct sockaddr_storage from;
|
||||||
socklen_t fromlen;
|
socklen_t fromlen;
|
||||||
unsigned short id2;
|
struct timeval time_recv;
|
||||||
struct sockaddr_storage from2;
|
|
||||||
socklen_t fromlen2;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum connection {
|
enum connection {
|
||||||
@ -118,6 +116,8 @@ void read_password(char*, size_t);
|
|||||||
|
|
||||||
int check_topdomain(char *, char **);
|
int check_topdomain(char *, char **);
|
||||||
|
|
||||||
|
extern double difftime(time_t, time_t);
|
||||||
|
|
||||||
#if defined(WINDOWS32) || defined(ANDROID)
|
#if defined(WINDOWS32) || defined(ANDROID)
|
||||||
#ifndef ANDROID
|
#ifndef ANDROID
|
||||||
int inet_aton(const char *cp, struct in_addr *inp);
|
int inet_aton(const char *cp, struct in_addr *inp);
|
||||||
|
Loading…
Reference in New Issue
Block a user