[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch: Windows Code - function "xmalloc" prototypes missing
From: |
Conrad T. Pino |
Subject: |
Patch: Windows Code - function "xmalloc" prototypes missing |
Date: |
Fri, 14 May 2004 18:23:16 -0700 |
This patch fixes issue but there are other options:
* File lib\xalloc.h:
void *xmalloc (size_t s);
> File diff\diff.h:
VOID *xmalloc PARAMS((size_t));
> File src\cvs.h:
void *xmalloc (size_t bytes)
./windows-NT/ChangeLog
* ndir.c: #include "xalloc.h" added.
* pwd.c: #include "xalloc.h" added.
Index: windows-NT/ndir.c
===================================================================
RCS file: /cvs/ccvs/windows-NT/ndir.c,v
retrieving revision 1.6
diff -u -p -r1.6 ndir.c
--- windows-NT/ndir.c 6 Dec 2002 20:09:24 -0000 1.6
+++ windows-NT/ndir.c 15 May 2004 01:13:35 -0000
@@ -27,6 +27,7 @@
#include <dos.h>
#include <ndir.h>
+#include "xalloc.h"
static void free_dircontents (struct _dircontents *);
Index: windows-NT/pwd.c
===================================================================
RCS file: /cvs/ccvs/windows-NT/pwd.c,v
retrieving revision 1.6
diff -u -p -r1.6 pwd.c
--- windows-NT/pwd.c 6 Dec 2002 20:09:24 -0000 1.6
+++ windows-NT/pwd.c 15 May 2004 01:13:35 -0000
@@ -21,6 +21,7 @@
#include <stdlib.h>
#include <string.h>
#include <pwd.h>
+#include "xalloc.h"
char* win32getlogin();
static char *lookup_env (char **);
- Patch: Windows Code - function "xmalloc" prototypes missing,
Conrad T. Pino <=