Deleted Added
full compact
rcsfile.c (204556) rcsfile.c (216542)
1/*-
2 * Copyright (c) 2007-2009, Ulf Lilleengen <lulf@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2007-2009, Ulf Lilleengen <lulf@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/usr.bin/csup/rcsfile.c 204556 2010-03-02 07:26:07Z lulf $
26 * $FreeBSD: head/usr.bin/csup/rcsfile.c 216542 2010-12-18 20:43:18Z lulf $
27 */
28
29#include <assert.h>
30#include <err.h>
31#include <errno.h>
32#include <stdio.h>
33#include <stdlib.h>
34#include <string.h>

--- 135 unchanged lines hidden (view full) ---

170 }
171 lprintf(-1, "\n");
172}
173
174/*
175 * Parse rcsfile from path and return a pointer to it.
176 */
177struct rcsfile *
27 */
28
29#include <assert.h>
30#include <err.h>
31#include <errno.h>
32#include <stdio.h>
33#include <stdlib.h>
34#include <string.h>

--- 135 unchanged lines hidden (view full) ---

170 }
171 lprintf(-1, "\n");
172}
173
174/*
175 * Parse rcsfile from path and return a pointer to it.
176 */
177struct rcsfile *
178rcsfile_frompath(char *path, char *name, char *cvsroot, char *colltag, int ro)
178rcsfile_frompath(const char *path, const char *name, const char *cvsroot,
179 const char *colltag, int ro)
179{
180 struct rcsfile *rf;
181 FILE *infp;
182 int error;
183
184 if (path == NULL || name == NULL || cvsroot == NULL || colltag == NULL)
185 return (NULL);
186

--- 1226 unchanged lines hidden ---
180{
181 struct rcsfile *rf;
182 FILE *infp;
183 int error;
184
185 if (path == NULL || name == NULL || cvsroot == NULL || colltag == NULL)
186 return (NULL);
187

--- 1226 unchanged lines hidden ---