summaryrefslogtreecommitdiffstats
path: root/usr.bin/rcs/rcsutil.c
diff options
context:
space:
mode:
authorray <ray@openbsd.org>2006-05-28 23:16:31 +0000
committerray <ray@openbsd.org>2006-05-28 23:16:31 +0000
commit6e2f6b91045dea8209b2df9c6a14d7c9de2dc0c7 (patch)
tree20411e1aa8526201f33864be0a3ad8421c3176b0 /usr.bin/rcs/rcsutil.c
parentminor nit, use CPU ID instead of FPU ID for BTLB parameters after passing (diff)
downloadwireguard-openbsd-6e2f6b91045dea8209b2df9c6a14d7c9de2dc0c7.tar.xz
wireguard-openbsd-6e2f6b91045dea8209b2df9c6a14d7c9de2dc0c7.zip
Remove a lot of xstrdup() calls in getopt() loops, which are usually
unnecessary. These xstrdup() calls don't call xfree() before anyway, so if a flag is given multiple times memory leaks would have resulted. OK joris@
Diffstat (limited to 'usr.bin/rcs/rcsutil.c')
-rw-r--r--usr.bin/rcs/rcsutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rcs/rcsutil.c b/usr.bin/rcs/rcsutil.c
index cb97e08f3d4..f98bdbb0f4c 100644
--- a/usr.bin/rcs/rcsutil.c
+++ b/usr.bin/rcs/rcsutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsutil.c,v 1.13 2006/05/27 08:12:29 ray Exp $ */
+/* $OpenBSD: rcsutil.c,v 1.14 2006/05/28 23:16:31 ray Exp $ */
/*
* Copyright (c) 2005, 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -358,7 +358,7 @@ rcs_prompt(const char *prompt)
}
u_int
-rcs_rev_select(RCSFILE *file, char *range)
+rcs_rev_select(RCSFILE *file, const char *range)
{
int i;
u_int nrev;
@@ -582,7 +582,7 @@ rcs_yesno(void)
* an argument vector for the values found.
*/
struct rcs_argvector *
-rcs_strsplit(char *str, const char *sep)
+rcs_strsplit(const char *str, const char *sep)
{
struct rcs_argvector *av;
size_t i = 0;