summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/exe.c
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2001-07-24 11:50:23 +0000
committertg <tg@FreeBSD.org>2001-07-24 11:50:23 +0000
commit47c2c99b5115c72bc1c4ad5ba8e7d21169d982ae (patch)
treef69b902c12889e39d57e3d83d55293ee0abee74b /usr.bin/doscmd/exe.c
parent97507091ff20d3dc72113dfbd0c9532423d3acb4 (diff)
downloadFreeBSD-src-47c2c99b5115c72bc1c4ad5ba8e7d21169d982ae.zip
FreeBSD-src-47c2c99b5115c72bc1c4ad5ba8e7d21169d982ae.tar.gz
Clean up the code a bit:
- add $FreeBSD$; - remove unused variables; - add missing headers and prototypes; - -Wshadow.
Diffstat (limited to 'usr.bin/doscmd/exe.c')
-rw-r--r--usr.bin/doscmd/exe.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/doscmd/exe.c b/usr.bin/doscmd/exe.c
index ce9a8f0..083a95d 100644
--- a/usr.bin/doscmd/exe.c
+++ b/usr.bin/doscmd/exe.c
@@ -31,10 +31,13 @@
* $FreeBSD$
*/
-#include <stdio.h>
#include <sys/types.h>
-#include <stdlib.h>
+#include <sys/uio.h>
#include <ctype.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
#include "doscmd.h"
/* exports */
@@ -45,7 +48,6 @@ int curpsp = 0;
static int psp_s[10] = { 0 };
static int env_s[10];
static regcontext_t frames[10];
-static char *env_block;
static int
make_environment (char *cmdname, char **env)
@@ -363,12 +365,6 @@ load_overlay(int fd, int start_segment, int reloc_segment)
load_exe(fd, start_segment, reloc_segment, &hdr, text_size);
}
-static int
-get_psp(void)
-{
- return(psp_s[curpsp]);
-}
-
int
get_env(void)
{
OpenPOWER on IntegriCloud