summaryrefslogtreecommitdiff
path: root/default.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2006-04-09 22:09:24 +0000
committerPaul Smith <psmith@gnu.org>2006-04-09 22:09:24 +0000
commit8b40defd1e1e486fd04d87c4b1a5ce233f145413 (patch)
tree3a3bed68bb3377d1a2a28ef8e1a56a269bc7b675 /default.c
parent21a5b2c58dc9198560f81895c24abd9b62aa058c (diff)
downloadmake-8b40defd1e1e486fd04d87c4b1a5ce233f145413.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 'default.c')
-rw-r--r--default.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/default.c b/default.c
index 86f719aa..ada0a8a0 100644
--- a/default.c
+++ b/default.c
@@ -555,7 +555,7 @@ install_default_suffix_rules (void)
/* Don't clobber cmds given in a makefile if there were any. */
if (f->cmds == 0)
{
- f->cmds = (struct commands *) xmalloc (sizeof (struct commands));
+ f->cmds = xmalloc (sizeof (struct commands));
f->cmds->fileinfo.filenm = 0;
f->cmds->commands = s[1];
f->cmds->command_lines = 0;