From c25294ad3ba1252a0d77bf63a27758a0eee4259e Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 9 Apr 2006 22:09:24 +0000 Subject: Another round of cleanups: - Add more warnings. - Rename variables that mask out-scope vars with the same name. - Remove all casts of return values from xmalloc, xrealloc, and alloca. - Remove casts of the first argument to xrealloc. - Convert all bcopy/bzero/bcmp invocations to use memcp/memmove/memset/memcmp. --- vmsfunctions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vmsfunctions.c') diff --git a/vmsfunctions.c b/vmsfunctions.c index 8cb0ddd..589a721 100644 --- a/vmsfunctions.c +++ b/vmsfunctions.c @@ -37,7 +37,7 @@ opendir (char *dspec) struct DIR *dir = (struct DIR *)xmalloc (sizeof (struct DIR)); struct NAM *dnam = (struct NAM *)xmalloc (sizeof (struct NAM)); struct FAB *dfab = &dir->fab; - char *searchspec = (char *)xmalloc (MAXNAMLEN + 1); + char *searchspec = xmalloc (MAXNAMLEN + 1); memset (dir, 0, sizeof *dir); -- cgit v1.2.3