]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
make functions mirror each other better
authorAlan T. DeKok <aland@freeradius.org>
Mon, 1 May 2017 15:03:09 +0000 (11:03 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 1 May 2017 15:03:09 +0000 (11:03 -0400)
src/lib/io/time.h

index 9ae4846d3686a281e8cdaf6134be94a26516fa6b..a8d04082be8101b0614fcc63ddb82148cfd3e857 100644 (file)
@@ -92,8 +92,8 @@ static inline void fr_dlist_insert_head(fr_dlist_t *head, fr_dlist_t *entry)
 
 static inline void fr_dlist_insert_tail(fr_dlist_t *head, fr_dlist_t *entry)
 {
-       entry->prev = head->prev;
        entry->next = head;
+       entry->prev = head->prev;
        head->prev->next = entry;
        head->prev = entry;
 }