diff options
author | Paul Smith <psmith@gnu.org> | 2006-04-09 22:09:24 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2006-04-09 22:09:24 +0000 |
commit | c25294ad3ba1252a0d77bf63a27758a0eee4259e (patch) | |
tree | 3a3bed68bb3377d1a2a28ef8e1a56a269bc7b675 /remake.c | |
parent | f222b19158a91b121af29a6a8eb5d74aa591078a (diff) | |
download | gunmake-c25294ad3ba1252a0d77bf63a27758a0eee4259e.tar.gz |
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.
Diffstat (limited to 'remake.c')
-rw-r--r-- | remake.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -238,7 +238,7 @@ update_goal_chain (struct dep *goals) lastgoal->next = g->next; /* Free the storage. */ - free ((char *) g); + free (g); g = lastgoal == 0 ? goals : lastgoal->next; @@ -1061,7 +1061,7 @@ touch_file (struct file *file) else { struct stat statbuf; - char buf; + char buf = 'x'; int e; EINTRLOOP (e, fstat (fd, &statbuf)); @@ -1191,10 +1191,10 @@ f_mtime (struct file *file, int search) /* free (file->name); */ - name = (char *) xmalloc (arlen + 1 + memlen + 2); - bcopy (arname, name, arlen); + name = xmalloc (arlen + 1 + memlen + 2); + memcpy (name, arname, arlen); name[arlen] = '('; - bcopy (memname, name + arlen + 1, memlen); + memcpy (name + arlen + 1, memname, memlen); name[arlen + 1 + memlen] = ')'; name[arlen + 1 + memlen + 1] = '\0'; |