Fix a couple of warnings and some bitrot in comments.
This commit is contained in:
parent
47154c8706
commit
e37622b251
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: linux_ioctl.c,v 1.31 1999/04/29 04:37:57 luoqi Exp $
|
||||
* $Id: linux_ioctl.c,v 1.32 1999/05/06 18:44:22 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -484,6 +484,7 @@ struct linux_cdrom_tocentry
|
||||
u_char cdte_datamode;
|
||||
};
|
||||
|
||||
#if 0
|
||||
static void
|
||||
linux_to_bsd_msf_lba(u_char address_format,
|
||||
union linux_cdrom_addr *lp, union msf_lba *bp)
|
||||
@ -496,6 +497,7 @@ linux_to_bsd_msf_lba(u_char address_format,
|
||||
bp->msf.frame = lp->msf.frame;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
bsd_to_linux_msf_lba(u_char address_format,
|
||||
|
@ -229,9 +229,7 @@ exec_svr4_imgact(imgp)
|
||||
|
||||
/*
|
||||
* Tell kern_execve.c about it, with a little help from the linker.
|
||||
* Since `const' objects end up in the text segment, TEXT_SET is the
|
||||
* correct directive to use.
|
||||
*/
|
||||
const struct execsw svr4_execsw = { exec_svr4_imgact, "svr4 ELF" };
|
||||
const execsw svr4_execsw = { exec_svr4_imgact, "svr4 ELF" };
|
||||
EXEC_SET(execsw_set, svr4_execsw);
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: imgact_coff.c,v 1.34 1999/01/17 20:39:08 peter Exp $
|
||||
* $Id: imgact_coff.c,v 1.35 1999/01/28 01:59:52 dillon Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -474,8 +474,6 @@ exec_coff_imgact(imgp)
|
||||
|
||||
/*
|
||||
* Tell kern_execve.c about it, with a little help from the linker.
|
||||
* Since `const' objects end up in the text segment, TEXT_SET is the
|
||||
* correct directive to use.
|
||||
*/
|
||||
static const struct execsw coff_execsw = { exec_coff_imgact, "coff" };
|
||||
static struct execsw coff_execsw = { exec_coff_imgact, "coff" };
|
||||
EXEC_SET(coff, coff_execsw);
|
||||
|
@ -28,7 +28,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: imgact_linux.c,v 1.30 1998/10/16 03:55:00 peter Exp $
|
||||
* $Id: imgact_linux.c,v 1.31 1999/01/17 20:36:14 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -233,9 +233,6 @@ exec_linux_imgact(imgp)
|
||||
|
||||
/*
|
||||
* Tell kern_execve.c about it, with a little help from the linker.
|
||||
* Since `const' objects end up in the text segment, TEXT_SET is the
|
||||
* correct directive to use.
|
||||
*/
|
||||
static const struct execsw linux_execsw = { exec_linux_imgact, "linux a.out" };
|
||||
static struct execsw linux_execsw = { exec_linux_imgact, "linux a.out" };
|
||||
EXEC_SET(linuxaout, linux_execsw);
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: linux_ioctl.c,v 1.31 1999/04/29 04:37:57 luoqi Exp $
|
||||
* $Id: linux_ioctl.c,v 1.32 1999/05/06 18:44:22 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -484,6 +484,7 @@ struct linux_cdrom_tocentry
|
||||
u_char cdte_datamode;
|
||||
};
|
||||
|
||||
#if 0
|
||||
static void
|
||||
linux_to_bsd_msf_lba(u_char address_format,
|
||||
union linux_cdrom_addr *lp, union msf_lba *bp)
|
||||
@ -496,6 +497,7 @@ linux_to_bsd_msf_lba(u_char address_format,
|
||||
bp->msf.frame = lp->msf.frame;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
bsd_to_linux_msf_lba(u_char address_format,
|
||||
|
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: imgact_aout.c,v 1.48 1999/03/10 07:07:42 alc Exp $
|
||||
* $Id: imgact_aout.c,v 1.49 1999/04/03 22:20:01 jdp Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -309,8 +309,6 @@ aout_coredump(p)
|
||||
|
||||
/*
|
||||
* Tell kern_execve.c about it, with a little help from the linker.
|
||||
* Since `const' objects end up in the text segment, TEXT_SET is the
|
||||
* correct directive to use.
|
||||
*/
|
||||
static struct execsw aout_execsw = { exec_aout_imgact, "a.out" };
|
||||
EXEC_SET(aout, aout_execsw);
|
||||
|
@ -26,7 +26,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: imgact_elf.c,v 1.54 1999/02/19 14:25:34 luoqi Exp $
|
||||
* $Id: imgact_elf.c,v 1.55 1999/02/20 23:52:34 jdp Exp $
|
||||
*/
|
||||
|
||||
#include "opt_rlimit.h"
|
||||
@ -1028,8 +1028,6 @@ elf_putnote(void *dst, size_t *off, const char *name, int type,
|
||||
|
||||
/*
|
||||
* Tell kern_execve.c about it, with a little help from the linker.
|
||||
* Since `const' objects end up in the text segment, TEXT_SET is the
|
||||
* correct directive to use.
|
||||
*/
|
||||
static struct execsw elf_execsw = {exec_elf_imgact, "ELF"};
|
||||
EXEC_SET(elf, elf_execsw);
|
||||
|
@ -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.35 1998/10/16 03:55:00 peter Exp $
|
||||
* $Id: imgact_gzip.c,v 1.36 1999/01/29 22:59:43 dillon Exp $
|
||||
*
|
||||
* This module handles execution of a.out files which have been run through
|
||||
* "gzip". This saves diskspace, but wastes cpu-cycles and VM.
|
||||
@ -370,9 +370,6 @@ Flush(void *vp, u_char * ptr, u_long siz)
|
||||
|
||||
/*
|
||||
* Tell kern_execve.c about it, with a little help from the linker.
|
||||
* Since `const' objects end up in the text segment, TEXT_SET is the
|
||||
* correct directive to use.
|
||||
*/
|
||||
|
||||
static struct execsw gzip_execsw = {exec_gzip_imgact, "gzip"};
|
||||
EXEC_SET(execgzip, gzip_execsw);
|
||||
|
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: imgact_shell.c,v 1.17 1998/10/16 03:55:00 peter Exp $
|
||||
* $Id: imgact_shell.c,v 1.18 1999/01/29 22:59:43 dillon Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -131,8 +131,6 @@ exec_shell_imgact(imgp)
|
||||
|
||||
/*
|
||||
* Tell kern_execve.c about it, with a little help from the linker.
|
||||
* Since `const' objects end up in the text segment, TEXT_SET is the
|
||||
* correct directive to use.
|
||||
*/
|
||||
static struct execsw shell_execsw = { exec_shell_imgact, "#!" };
|
||||
EXEC_SET(shell, shell_execsw);
|
||||
|
@ -229,9 +229,7 @@ exec_svr4_imgact(imgp)
|
||||
|
||||
/*
|
||||
* Tell kern_execve.c about it, with a little help from the linker.
|
||||
* Since `const' objects end up in the text segment, TEXT_SET is the
|
||||
* correct directive to use.
|
||||
*/
|
||||
const struct execsw svr4_execsw = { exec_svr4_imgact, "svr4 ELF" };
|
||||
const execsw svr4_execsw = { exec_svr4_imgact, "svr4 ELF" };
|
||||
EXEC_SET(execsw_set, svr4_execsw);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user