summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-02 16:32:03 +0000
committerbde <bde@FreeBSD.org>1995-12-02 16:32:03 +0000
commit5f43488dec8aabd1cd70951ccc1cbc31b2640ef2 (patch)
tree922794162d1c9c536a1c4167f638a62ecf94053a
parentd777ddd2a9c4077204f56d5025b3adfddaff5d0b (diff)
downloadFreeBSD-src-5f43488dec8aabd1cd70951ccc1cbc31b2640ef2.zip
FreeBSD-src-5f43488dec8aabd1cd70951ccc1cbc31b2640ef2.tar.gz
Staticized.
Added prototypes.
-rw-r--r--sys/kern/imgact_aout.c7
-rw-r--r--sys/kern/imgact_gzip.c5
-rw-r--r--sys/kern/imgact_shell.c6
3 files changed, 11 insertions, 7 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c
index 920952f..7d3fea5 100644
--- a/sys/kern/imgact_aout.c
+++ b/sys/kern/imgact_aout.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: imgact_aout.c,v 1.16 1995/09/08 13:24:32 davidg Exp $
+ * $Id: imgact_aout.c,v 1.17 1995/11/06 12:52:29 davidg Exp $
*/
#include <sys/param.h>
@@ -43,7 +43,9 @@
#include <vm/vm.h>
-int
+static int exec_aout_imgact __P((struct image_params *imgp));
+
+static int
exec_aout_imgact(imgp)
struct image_params *imgp;
{
@@ -207,4 +209,3 @@ exec_aout_imgact(imgp)
*/
static const struct execsw aout_execsw = { exec_aout_imgact, "a.out" };
TEXT_SET(execsw_set, aout_execsw);
-
diff --git a/sys/kern/imgact_gzip.c b/sys/kern/imgact_gzip.c
index 7fba9b9..792f8d6 100644
--- a/sys/kern/imgact_gzip.c
+++ b/sys/kern/imgact_gzip.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: imgact_gzip.c,v 1.14 1995/05/30 08:05:18 rgrimes Exp $
+ * $Id: imgact_gzip.c,v 1.15 1995/11/06 12:52:30 davidg Exp $
*
* This module handles execution of a.out files which have been run through
* "gzip". This saves diskspace, but wastes cpu-cycles and VM.
@@ -48,11 +48,12 @@ struct imgact_gzip {
u_long virtual_offset, file_offset, file_end, bss_size;
};
+static int exec_gzip_imgact __P((struct image_params *imgp));
static int NextByte __P((void *vp));
static int do_aout_hdr __P((struct imgact_gzip *));
static int Flush __P((void *vp, u_char *, u_long siz));
-int
+static int
exec_gzip_imgact(imgp)
struct image_params *imgp;
{
diff --git a/sys/kern/imgact_shell.c b/sys/kern/imgact_shell.c
index 59c95fe..db1b6ba 100644
--- a/sys/kern/imgact_shell.c
+++ b/sys/kern/imgact_shell.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: imgact_shell.c,v 1.8 1995/10/08 00:05:58 swallace Exp $
+ * $Id: imgact_shell.c,v 1.9 1995/11/06 12:52:31 davidg Exp $
*/
#include <sys/param.h>
@@ -48,11 +48,13 @@
#define MAXSHELLCMDLEN 64
+static int exec_shell_imgact __P((struct image_params *imgp));
+
/*
* Shell interpreter image activator. A interpreter name beginning
* at imgp->stringbase is the minimal successful exit requirement.
*/
-int
+static int
exec_shell_imgact(imgp)
struct image_params *imgp;
{
OpenPOWER on IntegriCloud