Changeset 2596 for vendor/gnumake/current/vmsfunctions.c
- Timestamp:
- Jun 20, 2012, 12:44:52 AM (13 years ago)
- Location:
- vendor/gnumake/current
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current
- Property svn:ignore deleted
-
vendor/gnumake/current/vmsfunctions.c
r1989 r2596 1 1 /* VMS functions 2 2 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 3 2007 Free Software Foundation, Inc.3 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4 4 This file is part of GNU Make. 5 5 … … 35 35 opendir (char *dspec) 36 36 { 37 struct DIR *dir = (struct DIR *)xmalloc (sizeof (struct DIR));38 struct NAM *dnam = (struct NAM *)xmalloc (sizeof (struct NAM));37 struct DIR *dir = xcalloc (sizeof (struct DIR)); 38 struct NAM *dnam = xmalloc (sizeof (struct NAM)); 39 39 struct FAB *dfab = &dir->fab; 40 40 char *searchspec = xmalloc (MAXNAMLEN + 1); 41 42 memset (dir, 0, sizeof *dir);43 41 44 42 *dfab = cc$rms_fab; … … 92 90 if (!((i = sys$search (dfab)) & 1)) 93 91 { 94 DB (DB_VERBOSE, (_("sys$search failed with %d\n"), i));92 DB (DB_VERBOSE, (_("sys$search() failed with %d\n"), i)); 95 93 return (NULL); 96 94 } … … 142 140 } 143 141 142 #if 0 143 /* 144 * Is this used? I don't see any reference, so I suggest to remove it. 145 */ 144 146 int 145 147 vms_stat (char *name, struct stat *buf) … … 238 240 return 0; 239 241 } 242 #endif 240 243 241 244 char *
Note:
See TracChangeset
for help on using the changeset viewer.