diff options
| author | Tadas Vilkeliskis <vilkeliskis.t@gmail.com> | 2020-08-25 11:25:21 -0400 |
|---|---|---|
| committer | Tadas Vilkeliskis <vilkeliskis.t@gmail.com> | 2020-08-25 11:25:21 -0400 |
| commit | 4878c5c87c74c3554897c4cbfdf6464b6048a728 (patch) | |
| tree | e69460329f1e5716161b76815d2ba009eaa4a362 /src | |
| parent | 86ad774ba53c5333aef07fa57f069111e11a59d2 (diff) | |
fix buildmaster
Diffstat (limited to 'src')
| -rw-r--r-- | src/iface.c | 16 | ||||
| -rw-r--r-- | src/includes/iface.h | 16 | ||||
| -rw-r--r-- | src/includes/network.h | 2 | ||||
| -rw-r--r-- | src/netdt.o | bin | 1748 -> 0 bytes | |||
| -rw-r--r-- | src/network.c | 2 |
5 files changed, 18 insertions, 18 deletions
diff --git a/src/iface.c b/src/iface.c index 8c67218..c6986c7 100644 --- a/src/iface.c +++ b/src/iface.c @@ -78,42 +78,42 @@ void iface_init(int socket, char *name) PDEBUG("iface_init() ended\n"); } -int inline iface_get_index() +int iface_get_index() { return (interface.index); } -int inline iface_get_mtu() +int iface_get_mtu() { return (interface.mtu); } -int inline iface_get_metric() +int iface_get_metric() { return (interface.metric); } -short inline iface_get_flags() +short iface_get_flags() { return (interface.flags); } -void inline iface_get_ip(struct in_addr *ip) +void iface_get_ip(struct in_addr *ip) { (*ip) = interface.ip; } -void inline iface_get_netmask(struct in_addr *netmask) +void iface_get_netmask(struct in_addr *netmask) { (*netmask) = interface.netmask; } -void inline iface_get_broadcast(struct in_addr *broadcast) +void iface_get_broadcast(struct in_addr *broadcast) { (*broadcast) = interface.broadcast; } -void inline iface_get_mac(struct ether_addr *mac) +void iface_get_mac(struct ether_addr *mac) { (*mac) = interface.mac; } diff --git a/src/includes/iface.h b/src/includes/iface.h index da2f86a..cfdbef8 100644 --- a/src/includes/iface.h +++ b/src/includes/iface.h @@ -27,13 +27,13 @@ /* Initialize global interface variables, call first */ void iface_init(int, char *); -int inline iface_get_index(); -int inline iface_get_mtu(); -int inline iface_get_metric(); -short inline iface_get_flags(); -void inline iface_get_ip(struct in_addr *); -void inline iface_get_netmask(struct in_addr *); -void inline iface_get_broadcast(struct in_addr *); -void inline iface_get_mac(struct ether_addr *); +int iface_get_index(); +int iface_get_mtu(); +int iface_get_metric(); +short iface_get_flags(); +void iface_get_ip(struct in_addr *); +void iface_get_netmask(struct in_addr *); +void iface_get_broadcast(struct in_addr *); +void iface_get_mac(struct ether_addr *); #endif diff --git a/src/includes/network.h b/src/includes/network.h index 0b6a984..0c46c9e 100644 --- a/src/includes/network.h +++ b/src/includes/network.h @@ -21,7 +21,7 @@ #ifndef __NETDT_NETWORK_H__ #define __NETDT_NETWORK_H__ 1 -void inline net_calc_network(struct in_addr, struct in_addr); +void net_calc_network(struct in_addr, struct in_addr); in_addr_t net_next_ip(struct in_addr); #endif diff --git a/src/netdt.o b/src/netdt.o Binary files differdeleted file mode 100644 index 1c5bcab..0000000 --- a/src/netdt.o +++ /dev/null diff --git a/src/network.c b/src/network.c index 5f0bf42..17bdf23 100644 --- a/src/network.c +++ b/src/network.c @@ -25,7 +25,7 @@ struct network unsigned long start, end; } network; -void inline net_calc_network(struct in_addr ip, struct in_addr netmask) +void net_calc_network(struct in_addr ip, struct in_addr netmask) { network.start = ip.s_addr & netmask.s_addr; /* sitas isvis niekam nereikalingas, reikia sugalvoti kur i kisti */ network.end = ip.s_addr | (~netmask.s_addr); |
