# | Line 224 | Line 224 | network_stat_t *get_network_stats(int *entries){ | |
---|---|---|
224 | regfree(®ex); | |
225 | ||
226 | #endif | |
227 | + | |
228 | + | #ifdef CYGWIN |
229 | + | return NULL; |
230 | + | #endif |
231 | + | |
232 | *entries=interfaces; | |
233 | ||
234 | return network_stats; | |
# | Line 279 | Line 284 | network_stat_t *get_network_stats_diff(int *entries){ | |
284 | network_stats_diff_ptr++; | |
285 | } | |
286 | network_stats_ptr=get_network_stats(&ifaces); | |
287 | + | if (network_stats_ptr == NULL) { |
288 | + | return NULL; |
289 | + | } |
290 | network_stats_diff_ptr=network_stats_diff; | |
291 | ||
292 | for(x=0;x<sizeof_net_stats_diff;x++){ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |