1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-12 12:23:50 +03:00

Getting back to a compilable state (not there yet but close).

Added patches for random -> sys_random.
Added set_effective_xxx patches for AFS code.
Memory allocation changes in spoolss code.
Jeremy.
This commit is contained in:
Jeremy Allison
-
parent 864e7bde0e
commit c2099cfb03
13 changed files with 603 additions and 531 deletions

View File

@@ -42,14 +42,6 @@
#define IS_DOS_SYSTEM(test_mode) (((test_mode) & aSYSTEM) != 0)
#define IS_DOS_HIDDEN(test_mode) (((test_mode) & aHIDDEN) != 0)
/* memory-allocation-helpers (idea and names from glib) */
#define g_new(type, count) \
((type *) malloc(sizeof(type) * (count)))
#define g_new0(type, count) \
((type *) calloc((count), sizeof(type)))
#define g_renew(type, mem, count) \
((type *) Realloc(mem, sizeof(type) * (count)))
/* zero a structure */
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))