summaryrefslogtreecommitdiffstats
path: root/usr.bin/cmp/regular.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2002-07-28 15:13:17 +0000
committerdwmalone <dwmalone@FreeBSD.org>2002-07-28 15:13:17 +0000
commit6b76694948a041d2a70fff45f17a6d3cfd92b209 (patch)
tree28f04322c1c89c99b7621658c5eac4cc8eff696a /usr.bin/cmp/regular.c
parentc86f1a950aeaaedeaeca52ab4e77ca47169e6a5f (diff)
downloadFreeBSD-src-6b76694948a041d2a70fff45f17a6d3cfd92b209.zip
FreeBSD-src-6b76694948a041d2a70fff45f17a6d3cfd92b209.tar.gz
ANSIify function definitions to avoid a warning.
Diffstat (limited to 'usr.bin/cmp/regular.c')
-rw-r--r--usr.bin/cmp/regular.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/usr.bin/cmp/regular.c b/usr.bin/cmp/regular.c
index 982e1b5..7e38fcd 100644
--- a/usr.bin/cmp/regular.c
+++ b/usr.bin/cmp/regular.c
@@ -59,10 +59,8 @@ static u_char *remmap(u_char *, int, off_t);
#define ROUNDPAGE(i) ((i) & ~pagemask)
void
-c_regular(fd1, file1, skip1, len1, fd2, file2, skip2, len2)
- int fd1, fd2;
- const char *file1, *file2;
- off_t skip1, len1, skip2, len2;
+c_regular(int fd1, const char *file1, off_t skip1, off_t len1,
+ int fd2, const char *file2, off_t skip2, off_t len2)
{
u_char ch, *p1, *p2, *m1, *m2, *e1, *e2;
off_t byte, length, line;
@@ -147,10 +145,7 @@ c_regular(fd1, file1, skip1, len1, fd2, file2, skip2, len2)
}
static u_char *
-remmap(mem, fd, offset)
- u_char *mem;
- int fd;
- off_t offset;
+remmap(u_char *mem, int fd, off_t offset)
{
if (mem != NULL)
munmap(mem, MMAP_CHUNK);
OpenPOWER on IntegriCloud