diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-22 14:47:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-22 14:47:42 +0000 |
commit | fc43d761647911712e283aebdd395fc5fdf2ef92 (patch) | |
tree | dc18572a7fdd2a295250a5a1d93dd8a176988fdf /games/worm/worm.c | |
parent | 5c21feb489b7dd8e2c1faada3f182e9e1899ced8 (diff) |
remove malloc/calloc/realloc* casts, due to stdlib.h being present; ok millert krw
Diffstat (limited to 'games/worm/worm.c')
-rw-r--r-- | games/worm/worm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/worm/worm.c b/games/worm/worm.c index fa9f22fd807..15861f3e42c 100644 --- a/games/worm/worm.c +++ b/games/worm/worm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: worm.c,v 1.29 2015/08/21 02:42:26 deraadt Exp $ */ +/* $OpenBSD: worm.c,v 1.30 2015/08/22 14:47:41 deraadt Exp $ */ /* * Copyright (c) 1980, 1993 @@ -359,7 +359,7 @@ newlink(void) { struct body *tmp; - if ((tmp = (struct body *) malloc(sizeof (struct body))) == NULL) { + if ((tmp = malloc(sizeof (struct body))) == NULL) { endwin(); errx(1, "out of memory"); } |