diff options
Diffstat (limited to 'gshadow')
-rw-r--r-- | gshadow/fgetsgent.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gshadow/fgetsgent.c b/gshadow/fgetsgent.c index 68e69ef..dc26b24 100644 --- a/gshadow/fgetsgent.c +++ b/gshadow/fgetsgent.c @@ -20,6 +20,7 @@ #include <gshadow.h> #include <stdio.h> #include <stdlib.h> +#include <set-freeres.h> /* A reasonable size for a buffer to start with. */ @@ -28,7 +29,7 @@ /* We need to protect the dynamic buffer handling. */ __libc_lock_define_initialized (static, lock); -libc_freeres_ptr (static char *buffer); +static char *buffer; /* Read one shadow entry from the given stream. */ struct sgrp * @@ -85,3 +86,5 @@ fgetsgent (FILE *stream) return result; } + +weak_alias (buffer, __libc_fgetsgent_freeres_ptr); |