Deleted Added
full compact
pager.c (38452) pager.c (39468)
1/*-
2 * Copyright (c) 1998 Michael Smith <msmith@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) 1998 Michael Smith <msmith@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 * $Id$
26 * $Id: pager.c,v 1.1.1.1 1998/08/20 08:19:55 msmith Exp $
27 */
28/*
29 * Simple paged-output and paged-viewing functions
30 */
31
32#include "stand.h"
33#include <string.h>
34

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

122 }
123 }
124}
125
126/*
127 * Display from (fd).
128 */
129int
27 */
28/*
29 * Simple paged-output and paged-viewing functions
30 */
31
32#include "stand.h"
33#include <string.h>
34

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

122 }
123 }
124}
125
126/*
127 * Display from (fd).
128 */
129int
130pager_file(char *fname)
130pager_file(const char *fname)
131{
132 char buf[80];
133 size_t hmuch;
134 int fd;
135 int result;
136
137 if ((fd = open(fname, O_RDONLY)) == -1) {
138 printf("can't open '%s': %s\n", fname, strerror(errno));

--- 24 unchanged lines hidden ---
131{
132 char buf[80];
133 size_t hmuch;
134 int fd;
135 int result;
136
137 if ((fd = open(fname, O_RDONLY)) == -1) {
138 printf("can't open '%s': %s\n", fname, strerror(errno));

--- 24 unchanged lines hidden ---