less warnings

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@894 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-10-26 21:41:16 +00:00
parent 3e317bb818
commit aaafb2bf9c
30 changed files with 149 additions and 82 deletions

View File

@@ -105,6 +105,7 @@ RCSID("$Id$");
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#ifdef HAVE_SYSLOG_H
#include <syslog.h>
@@ -117,7 +118,7 @@ RCSID("$Id$");
#include <grp.h>
#endif
#include <stdarg.h>
#include <err.h>
#include "pathnames.h"
#include "extern.h"
@@ -846,12 +847,12 @@ retrieve(char *cmd, char *name)
char *cmd;
} cmds[] = {
/* XXX - make this more general */
".tar", "/bin/gtar cPf - ",
".tar.gz", "/bin/gtar zcPf - ",
".tar.Z", "/bin/gtar ZcPf - ",
".gz", "/bin/gzip -c ",
".Z", "/bin/compress -c ",
NULL, NULL
{".tar", "/bin/gtar cPf - "},
{".tar.gz", "/bin/gtar zcPf - "},
{".tar.Z", "/bin/gtar ZcPf - "},
{".gz", "/bin/gzip -c "},
{".Z", "/bin/compress -c "},
{NULL, NULL}
};
struct cmds *p;
for(p = cmds; p->ext; p++){