summaryrefslogtreecommitdiffstats
path: root/usr.bin/ar/acpyacc.y
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ar/acpyacc.y')
-rw-r--r--usr.bin/ar/acpyacc.y14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/ar/acpyacc.y b/usr.bin/ar/acpyacc.y
index bc25b62..b686c3f5 100644
--- a/usr.bin/ar/acpyacc.y
+++ b/usr.bin/ar/acpyacc.y
@@ -251,7 +251,7 @@ arscp_open(char *fname)
if ((a = archive_read_new()) == NULL)
bsdar_errc(bsdar, EX_SOFTWARE, 0, "archive_read_new failed");
archive_read_support_compression_all(a);
- archive_read_support_format_all(a);
+ archive_read_support_format_ar(a);
AC(archive_read_open_file(a, fname, DEF_BLKSZ));
if ((r = archive_read_next_header(a, &entry)))
bsdar_warnc(bsdar, 0, "%s", archive_error_string(a));
@@ -414,7 +414,7 @@ arscp_extract(struct list *list)
/* List modules of archive. (Simple Mode) */
static void
-arscp_list()
+arscp_list(void)
{
if (!arscp_target_exist())
@@ -483,7 +483,7 @@ arscp_replace(struct list *list)
/* Rename the temporary archive to the target archive. */
static void
-arscp_save()
+arscp_save(void)
{
mode_t mask;
@@ -512,7 +512,7 @@ arscp_save()
* invoking CREATE cmd on current archive.
*/
static void
-arscp_clear()
+arscp_clear(void)
{
char *new_target;
@@ -549,7 +549,7 @@ arscp_end(int eval)
* issued by user.
*/
static int
-arscp_target_exist()
+arscp_target_exist(void)
{
if (target)
@@ -624,7 +624,7 @@ arscp_mlist2argv(struct list *list)
/* Free space allocated for argv array and its elements. */
static void
-arscp_free_argv()
+arscp_free_argv(void)
{
int i;
@@ -636,7 +636,7 @@ arscp_free_argv()
/* Show a prompt if we are in interactive mode */
static void
-arscp_prompt()
+arscp_prompt(void)
{
if (interactive) {
OpenPOWER on IntegriCloud