From de956290baa120957bf58cbc884a82ed75857415 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Sat, 18 Dec 2010 20:43:18 +0000 Subject: [PATCH] - Signal that data should not be modified. --- usr.bin/csup/rcsfile.c | 3 ++- usr.bin/csup/rcsfile.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.bin/csup/rcsfile.c b/usr.bin/csup/rcsfile.c index 1f3ede154cf2..33caa03e7cf0 100644 --- a/usr.bin/csup/rcsfile.c +++ b/usr.bin/csup/rcsfile.c @@ -175,7 +175,8 @@ print_stream(struct stream *s) * Parse rcsfile from path and return a pointer to it. */ struct rcsfile * -rcsfile_frompath(char *path, char *name, char *cvsroot, char *colltag, int ro) +rcsfile_frompath(const char *path, const char *name, const char *cvsroot, + const char *colltag, int ro) { struct rcsfile *rf; FILE *infp; diff --git a/usr.bin/csup/rcsfile.h b/usr.bin/csup/rcsfile.h index 5fa9f31cb1a5..096ac96e0478 100644 --- a/usr.bin/csup/rcsfile.h +++ b/usr.bin/csup/rcsfile.h @@ -42,7 +42,8 @@ struct delta; struct stream; /* Fetching, sending and writing an RCS file. */ -struct rcsfile *rcsfile_frompath(char *, char *, char *, char *, int); +struct rcsfile *rcsfile_frompath(const char *, const char *, const char *, + const char *, int); int rcsfile_send_details(struct rcsfile *, struct stream *); int rcsfile_write(struct rcsfile *, struct stream *); void rcsfile_print(struct rcsfile *);