From a523e997c1a51cdd8790b5baa5063f9ae4d337ec Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Mon, 19 Jun 2000 20:06:20 +0000 Subject: add missing headers, declare missing functions remove unused vars, KNF; more to come. --- usr.bin/tcfs/tcfsrun.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'usr.bin/tcfs/tcfsrun.c') diff --git a/usr.bin/tcfs/tcfsrun.c b/usr.bin/tcfs/tcfsrun.c index 0010561f9ba..335f906bfcb 100644 --- a/usr.bin/tcfs/tcfsrun.c +++ b/usr.bin/tcfs/tcfsrun.c @@ -10,17 +10,19 @@ * Base utility set v0.1 */ -#include #include -#include -#include -#include #include #include #include +#include #include +#include +#include +#include +#include #include +#include "tcfslib.h" char *cmd_def="/bin/sh"; char *run_usage = "usage: tcfsrun [-p mount-point | -f fs-label] [cmd] [args...]"; @@ -28,11 +30,11 @@ char *run_usage = "usage: tcfsrun [-p mount-point | -f fs-label] [cmd] [args...] int run_main(int argc, char *argv[], char *envp[]) { - char *key, *fs, *cmd, x; - char *args, fspath[MAXPATHLEN], cmdname[MAXPATHLEN]; + char *key, *cmd, x; + char fspath[MAXPATHLEN], cmdname[MAXPATHLEN]; uid_t uid; pid_t pid; - int es,i = 1; + int es; int havefspath = 0,havecmd = 0; uid = getuid(); -- cgit v1.2.3