diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-02-19 11:40:01 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-02-19 11:40:01 +0000 |
commit | 798300be85f1053c70f183a2ac9e71458c7c1dae (patch) | |
tree | 69b9a3f7595052973872142f83c8c30289381dd6 /usr.bin/cvs/util.h | |
parent | 27d58412abaa0705237ccfac83add9738c79b6ec (diff) |
Fix const inconsistencies, void pointer artithmetic and a few other
things. now gcc -Wall and lint are more happy. ok joris@ xsa@
Diffstat (limited to 'usr.bin/cvs/util.h')
-rw-r--r-- | usr.bin/cvs/util.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/cvs/util.h b/usr.bin/cvs/util.h index 93dcf79be41..13db61da576 100644 --- a/usr.bin/cvs/util.h +++ b/usr.bin/cvs/util.h @@ -1,4 +1,4 @@ -/* $OpenBSD: util.h,v 1.16 2007/02/17 18:23:43 xsa Exp $ */ +/* $OpenBSD: util.h,v 1.17 2007/02/19 11:40:00 otto Exp $ */ /* * Copyright (c) 2006 Niall O'Higgins <niallo@openbsd.org> * All rights reserved. @@ -47,7 +47,7 @@ void cvs_freeargv(char **, int); u_int cvs_revision_select(RCSFILE *, char *); struct cvs_line { - char *l_line; + u_char *l_line; size_t l_len; int l_lineno; int l_needsfree; @@ -66,10 +66,10 @@ struct cvs_argvector { char **argv; }; -BUF *cvs_patchfile(const u_char *, size_t, const u_char *, +BUF *cvs_patchfile(u_char *, size_t, u_char *, size_t, int (*p)(struct cvs_lines *, struct cvs_lines *)); -struct cvs_lines *cvs_splitlines(const u_char *, size_t); +struct cvs_lines *cvs_splitlines(u_char *, size_t); void cvs_freelines(struct cvs_lines *); struct cvs_argvector *cvs_strsplit(char *, const char *); void cvs_argv_destroy(struct cvs_argvector *); |