[BACK]Return to patch-xtar.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / xtar / patches

File: [cvs.NetBSD.org] / pkgsrc / x11 / xtar / patches / patch-xtar.c (download)

Revision 1.1, Fri Jan 7 12:43:14 2022 UTC (2 years, 2 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, HEAD

add x11/xtar

XTar is a package for graphically viewing and manipulating files which have
been archived using tar (Tape ARchive), and possibly compressed with gzip
or the standard UNIX compress utility. XTar requires an ANSI C compiler and
the Motif toolkit to build.

$NetBSD: patch-xtar.c,v 1.1 2022/01/07 12:43:14 nia Exp $

- Fix implicit declaration warnings.
- Remove an unused variable that assumes it knows the size of
  a private struct.

--- xtar.c.orig	1995-07-17 11:44:19.000000000 +0000
+++ xtar.c
@@ -31,6 +31,7 @@
 #include <sys/param.h>
 #include <sys/wait.h>
 #include <sys/stat.h>
+#include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 
@@ -46,6 +47,7 @@
 #include <Xm/ScrolledW.h>
 #include <Xm/Text.h>
 #include <Xm/TextF.h>
+#include <Xm/ToggleB.h>
 
 #include "Xbr.h"
 #include "xtarint.h"
@@ -1164,7 +1166,6 @@ static int xtar_show(char *tfname, char 
 static int xtar_attributes(TAR_FILE *tf, char *filename)
 {
     int retval = 0;
-    struct utimbuf utimbuf;
 
     /* If the file type is not a directory then try and set the access
        permissions. We exclude directories because if write permission