]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Avoid duplicate definition of ADD_TO_ARRAY
authorVolker Lendecke <vl@samba.org>
Mon, 30 Sep 2024 08:37:06 +0000 (10:37 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 2 Oct 2024 13:12:30 +0000 (13:12 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/printer_driver/printer_driver.c

index 2d07df37adc41892ecd6f5a04ce74a30deed026d..f04952eba64da3f256e0f2a8fbd23988ed62fa81 100644 (file)
 #include "rpc_client/init_spoolss.h"
 #include "libgpo/gpo_ini.h"
 #include "printer_driver.h"
-
-#define ADD_TO_ARRAY(mem_ctx, type, elem, array, num) \
-do { \
-       *(array) = talloc_realloc(mem_ctx, (*(array)), type, (*(num))+1); \
-       SMB_ASSERT((*(array)) != NULL); \
-       (*(array))[*(num)] = (elem); \
-       (*(num)) += 1; \
-} while (0)
-
+#include "source3/include/smb_macros.h"
 
 /* GetPrinterDriverDirectory  -> drivers and dependent files */
 #define PRINTER_INF_DIRID_66000