# | Line 66 | Line 66 | typedef __uint64_t u64; | |
---|---|---|
66 | #include <net/if.h> | |
67 | #include <net/if_media.h> | |
68 | #include <sys/ioctl.h> | |
69 | + | #include <unistd.h> |
70 | #endif | |
71 | ||
72 | static network_stat_t *network_stats=NULL; | |
# | Line 339 | Line 340 | long long transfer_diff(long long new, long long old){ | |
340 | network_stat_t *get_network_stats_diff(int *entries) { | |
341 | static network_stat_t *diff = NULL; | |
342 | static int diff_count = 0; | |
343 | < | network_stat_t *src, *dest; |
343 | > | network_stat_t *src = NULL, *dest; |
344 | int i, j, new_count; | |
345 | ||
346 | if (network_stats == NULL) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |