aboutsummaryrefslogtreecommitdiffstats
path: root/cat
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2016-05-12 16:03:55 +0000
committerMartin Matuska <mm@FreeBSD.org>2016-05-12 16:03:55 +0000
commitcf8cc1c88406d9c2a9337df1792143e887e4595e (patch)
tree3f30061f1a1a23f9f88b44cef0fcfbf208f6616b /cat
parent4e579f6c9425c995106fbf72667f4ec7e5d5db85 (diff)
downloadsrc-cf8cc1c88406d9c2a9337df1792143e887e4595e.tar.gz
src-cf8cc1c88406d9c2a9337df1792143e887e4595e.zip
Update vendor/libarchive/dist to git commit f48d99b
Integrates my pull requests #701, #702 and #703
Notes
Notes: svn path=/vendor/libarchive/dist/; revision=299539
Diffstat (limited to 'cat')
-rw-r--r--cat/bsdcat.c12
-rw-r--r--cat/bsdcat.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/cat/bsdcat.c b/cat/bsdcat.c
index af140e0001c7..9ef75a6b476f 100644
--- a/cat/bsdcat.c
+++ b/cat/bsdcat.c
@@ -42,10 +42,10 @@ __FBSDID("$FreeBSD$");
#define BYTES_PER_BLOCK (20*512)
-struct archive *a;
-struct archive_entry *ae;
-char *bsdcat_current_path;
-int exit_status = 0;
+static struct archive *a;
+static struct archive_entry *ae;
+static const char *bsdcat_current_path;
+static int exit_status = 0;
void
@@ -68,7 +68,7 @@ version(void)
}
void
-bsdcat_next()
+bsdcat_next(void)
{
a = archive_read_new();
archive_read_support_filter_all(a);
@@ -85,7 +85,7 @@ bsdcat_print_error(void)
}
void
-bsdcat_read_to_stdout(char* filename)
+bsdcat_read_to_stdout(const char* filename)
{
int r;
diff --git a/cat/bsdcat.h b/cat/bsdcat.h
index ca603d3d6f89..2e055e7c187c 100644
--- a/cat/bsdcat.h
+++ b/cat/bsdcat.h
@@ -53,4 +53,4 @@ int bsdcat_getopt(struct bsdcat *);
void usage(FILE *stream, int eval);
void bsdcat_next(void);
void bsdcat_print_error(void);
-void bsdcat_read_to_stdout(char* filename);
+void bsdcat_read_to_stdout(const char* filename);