summaryrefslogtreecommitdiff
path: root/usr.bin/tcfs/tcfsrun.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-06-19 20:06:20 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-06-19 20:06:20 +0000
commita523e997c1a51cdd8790b5baa5063f9ae4d337ec (patch)
treec38e0ea9f178648ec3c5ef20ffa7f24b65fa045b /usr.bin/tcfs/tcfsrun.c
parentdfe75051c4e14d14e779991125bd2e52b3976c53 (diff)
add missing headers, declare missing functions remove unused vars, KNF;
more to come.
Diffstat (limited to 'usr.bin/tcfs/tcfsrun.c')
-rw-r--r--usr.bin/tcfs/tcfsrun.c16
1 files changed, 9 insertions, 7 deletions
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 <stdio.h>
#include <sys/types.h>
-#include <ctype.h>
-#include <pwd.h>
-#include <unistd.h>
#include <sys/param.h>
#include <sys/mount.h>
#include <sys/wait.h>
+#include <ctype.h>
#include <des.h>
+#include <pwd.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
#include <miscfs/tcfs/tcfs.h>
+#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();