From b0cffbe5e3fa81a04480024fb636cdac11be7589 Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Mon, 25 Dec 2017 00:27:52 +0100 Subject: [PATCH] fix probe count --- src/storage/datastorage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/datastorage.c b/src/storage/datastorage.c index c7765fc..f21757e 100644 --- a/src/storage/datastorage.c +++ b/src/storage/datastorage.c @@ -240,9 +240,9 @@ int compare_station_count(uint8_t *bssid_addr_own, uint8_t *bssid_addr_to_compar ) { printf("Comparing own %d to %d\n", ap_entry_own.station_count, ap_entry_to_compre.station_count); if (automatic_kick) { - return (ap_entry_own.station_count - 1) > ap_entry_to_compre.station_count; + return ((int)ap_entry_own.station_count - 1) > (int)ap_entry_to_compre.station_count; } else { - return ap_entry_own.station_count > ap_entry_to_compre.station_count; + return (int)ap_entry_own.station_count > (int)ap_entry_to_compre.station_count; } /*