diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-03-19 07:04:52 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-03-19 07:04:52 +0000 |
commit | bed840549aef28ec6afb2e9d439b174b08eea9a7 (patch) | |
tree | 6b07f0f3f1a1f0d4ecdafbac046a3a06970bf712 /lib/libc/stdio/fgetln.3 | |
parent | 4f686cdafb9ea8afc2918dbef56cfd96340c0592 (diff) |
Remove extraneous cast to malloc call in fgetln example.
OK otto@
Diffstat (limited to 'lib/libc/stdio/fgetln.3')
-rw-r--r-- | lib/libc/stdio/fgetln.3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/fgetln.3 b/lib/libc/stdio/fgetln.3 index 430599bcda1..99c362f5e42 100644 --- a/lib/libc/stdio/fgetln.3 +++ b/lib/libc/stdio/fgetln.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fgetln.3,v 1.12 2005/02/25 03:12:44 cloder Exp $ +.\" $OpenBSD: fgetln.3,v 1.13 2006/03/19 07:04:51 ray Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -134,7 +134,7 @@ temporary buffer: buf[len - 1] = '\e0'; else { /* EOF without EOL, copy and add the NUL */ - if ((lbuf = (char *)malloc(len + 1)) == NULL) + if ((lbuf = malloc(len + 1)) == NULL) err(1, NULL); memcpy(lbuf, buf, len); lbuf[len] = '\e0'; |