diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-07-28 17:46:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-07-28 17:46:53 +0000 |
commit | 78a147efcb2e1cb4c88b290eb19c86a6e086dc8f (patch) | |
tree | 6edc948ca328ee4a48795cedc5efc0f3a121bec5 /bin/ed | |
parent | 4284e83059178a8e56f7dfb5b7fb38156d31204c (diff) |
remove gratuitous casts
Diffstat (limited to 'bin/ed')
-rw-r--r-- | bin/ed/buf.c | 4 | ||||
-rw-r--r-- | bin/ed/main.c | 4 | ||||
-rw-r--r-- | bin/ed/re.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/bin/ed/buf.c b/bin/ed/buf.c index 81584992d44..ad1aa4ed94e 100644 --- a/bin/ed/buf.c +++ b/bin/ed/buf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buf.c,v 1.20 2014/11/20 15:22:39 tedu Exp $ */ +/* $OpenBSD: buf.c,v 1.21 2015/07/28 17:46:52 deraadt Exp $ */ /* $NetBSD: buf.c,v 1.15 1995/04/23 10:07:28 cgd Exp $ */ /* buf.c: This file contains the scratch-file buffer routines for the @@ -83,7 +83,7 @@ put_sbuf_line(char *cs) int len, ct; char *s; - if ((lp = (line_t *) malloc(sizeof(line_t))) == NULL) { + if ((lp = malloc(sizeof(line_t))) == NULL) { perror(NULL); seterrmsg("out of memory"); return NULL; diff --git a/bin/ed/main.c b/bin/ed/main.c index c0f93138dac..c678d8f7c1e 100644 --- a/bin/ed/main.c +++ b/bin/ed/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.45 2015/07/14 19:16:33 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.46 2015/07/28 17:46:52 deraadt Exp $ */ /* $NetBSD: main.c,v 1.3 1995/03/21 09:04:44 cgd Exp $ */ /* main.c: This file contains the main control and user-interface routines @@ -1315,7 +1315,7 @@ dup_line_node(line_t *lp) { line_t *np; - if ((np = (line_t *) malloc(sizeof(line_t))) == NULL) { + if ((np = malloc(sizeof(line_t))) == NULL) { perror(NULL); seterrmsg("out of memory"); return NULL; diff --git a/bin/ed/re.c b/bin/ed/re.c index e99a29a0250..d985b79ad8b 100644 --- a/bin/ed/re.c +++ b/bin/ed/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.12 2015/01/16 06:39:32 deraadt Exp $ */ +/* $OpenBSD: re.c,v 1.13 2015/07/28 17:46:52 deraadt Exp $ */ /* $NetBSD: re.c,v 1.14 1995/03/21 09:04:48 cgd Exp $ */ /* re.c: This file contains the regular expression interface routines for @@ -59,7 +59,7 @@ get_compiled_pattern(void) /* buffer alloc'd && not reserved */ if (exp && !patlock) regfree(exp); - else if ((exp = (pattern_t *) malloc(sizeof(pattern_t))) == NULL) { + else if ((exp = malloc(sizeof(pattern_t))) == NULL) { perror(NULL); seterrmsg("out of memory"); return NULL; |