diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-04-05 01:38:57 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-04-05 01:38:57 +0000 |
commit | 0898160056a31f0981cae42f585dce85844d89b7 (patch) | |
tree | 2ab8437cd5dbf0558b5d3f90f54443694d8a7d53 /usr.bin/cvs/proto.c | |
parent | 83701e885596de792fb8b058bf3e19ceb443a245 (diff) |
Use variable names for sizeof, remove casts in front of xmalloc,
use xcalloc and xstrdup where appropriate, and other stuff.
OK joris@
Diffstat (limited to 'usr.bin/cvs/proto.c')
-rw-r--r-- | usr.bin/cvs/proto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/proto.c b/usr.bin/cvs/proto.c index f7cab44192e..885c7afbb2c 100644 --- a/usr.bin/cvs/proto.c +++ b/usr.bin/cvs/proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proto.c,v 1.93 2006/04/02 02:01:40 joris Exp $ */ +/* $OpenBSD: proto.c,v 1.94 2006/04/05 01:38:55 ray Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -404,7 +404,7 @@ cvs_req_getvalid(void) cvs_buf_putc(buf, '\0'); len = cvs_buf_len(buf); - vrstr = (char *)xmalloc(len); + vrstr = xmalloc(len); cvs_buf_copy(buf, (size_t)0, vrstr, len); cvs_buf_free(buf); @@ -474,7 +474,7 @@ cvs_resp_getvalid(void) cvs_buf_putc(buf, '\0'); len = cvs_buf_len(buf); - vrstr = (char *)xmalloc(len); + vrstr = xmalloc(len); cvs_buf_copy(buf, (size_t)0, vrstr, len); cvs_buf_free(buf); |