]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Always pass in line numbers
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 5 Oct 2022 03:55:32 +0000 (23:55 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 5 Oct 2022 03:55:32 +0000 (23:55 -0400)
src/lib/util/atexit.h

index cea40c451194f6a52b99b80ce34421e12af9b697..f98c6360b776e0a1bfcb25ac07853c658440e427 100644 (file)
@@ -55,7 +55,7 @@ int _atexit_global(char const *file, int line, fr_atexit_t func, void const *uct
  *     - 0 on success.
  *      - -1 on failure.
  */
-#define fr_atexit_global(_func, _uctx) _atexit_global(NDEBUG_LOCATION_EXP _func, _uctx)
+#define fr_atexit_global(_func, _uctx) _atexit_global(__FILE__, __LINE__, _func, _uctx)
 
 unsigned int   fr_atexit_global_disarm(bool uctx_scope, fr_atexit_t func, void const *uctx);
 
@@ -119,7 +119,7 @@ bool                fr_atexit_is_exiting(void);
 #  define fr_atexit_thread_local(_name, _free, _uctx) \
 do { \
        void *_our_uctx = _uctx; /* stop _uctx being evaluated multiple times, it may be a call to malloc() */ \
-       _fr_atexit_thread_local(NDEBUG_LOCATION_EXP _free, _our_uctx); \
+       _fr_atexit_thread_local(__FILE__, __LINE__, _free, _our_uctx); \
        _name = _our_uctx; \
 } while (0);