s4:wins: winsdb_addr_sort_list() uses NUMERIC_CMP()
[metze/samba-autobuild/.git] / source4 / nbt_server / wins / winsdb.c
index eb554fc5bd3449d76b54547e8c5bc59bac1f4549..7df40c331352e2647e5ae6c7fbe234761a572e91 100644 (file)
@@ -350,7 +350,7 @@ static int winsdb_addr_sort_list (struct winsdb_addr **p1, struct winsdb_addr **
         * then the replica addresses with the newest to the oldest address
         */
        if (a2->expire_time != a1->expire_time) {
-               return a2->expire_time - a1->expire_time;
+               return NUMERIC_CMP(a2->expire_time, a1->expire_time);
        }
 
        if (strcmp(a2->wins_owner, h->local_owner) == 0) {