Some const poisoning.

This commit is contained in:
thorpej 2002-06-18 02:49:08 +00:00
parent 1fb8545c60
commit 873bb550a0
4 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: filter.c,v 1.1 2002/06/17 16:29:08 christos Exp $ */
/* $NetBSD: filter.c,v 1.2 2002/06/18 02:49:08 thorpej Exp $ */
/* $OpenBSD: filter.c,v 1.11 2002/06/11 05:30:28 provos Exp $ */
/*
@ -31,7 +31,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: filter.c,v 1.1 2002/06/17 16:29:08 christos Exp $");
__RCSID("$NetBSD: filter.c,v 1.2 2002/06/18 02:49:08 thorpej Exp $");
#include <sys/param.h>
#include <sys/types.h>
@ -338,7 +338,7 @@ filter_ask(struct intercept_tlq *tls, struct filterq *fls,
if (tls != NULL) {
struct intercept_translate *tl;
char compose[2*MAXPATHLEN], *l;
char *lst = NULL;
const char *lst = NULL;
int set = 0;
/* Explicitly match every component */

View File

@ -1,4 +1,4 @@
/* $NetBSD: intercept.c,v 1.1 2002/06/17 16:29:08 christos Exp $ */
/* $NetBSD: intercept.c,v 1.2 2002/06/18 02:49:09 thorpej Exp $ */
/* $OpenBSD: intercept.c,v 1.5 2002/06/10 19:16:26 provos Exp $ */
/*
@ -31,7 +31,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: intercept.c,v 1.1 2002/06/17 16:29:08 christos Exp $");
__RCSID("$NetBSD: intercept.c,v 1.2 2002/06/18 02:49:09 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -480,7 +480,7 @@ intercept_syscall(int fd, pid_t pid, int policynr, const char *name, int code,
void
intercept_syscall_result(int fd, pid_t pid, int policynr,
const char *name, int code, char *emulation, void *args, int argsize,
const char *name, int code, const char *emulation, void *args, int argsize,
int result, void *rval)
{
struct intercept_pid *icpid;

View File

@ -1,4 +1,4 @@
/* $NetBSD: intercept.h,v 1.1 2002/06/17 16:29:09 christos Exp $ */
/* $NetBSD: intercept.h,v 1.2 2002/06/18 02:49:09 thorpej Exp $ */
/* $OpenBSD: intercept.h,v 1.2 2002/06/10 19:16:26 provos Exp $ */
/*
@ -38,7 +38,7 @@
struct intercept_pid;
struct intercept_system {
char *name;
const char *name;
int (*init)(void);
int (*open)(void);
int (*attach)(int, pid_t);
@ -85,7 +85,7 @@ struct intercept_pid {
#define INTERCEPT_MAXSYSCALLARGS 10
struct intercept_translate {
char *name;
const char *name;
int (*translate)(struct intercept_translate *, int, pid_t, void *);
int (*print)(char *, size_t, struct intercept_translate *);
int off2;
@ -148,7 +148,7 @@ char *intercept_filename(int, pid_t, void *);
void intercept_syscall(int, pid_t, int, const char *, int, const char *, void *,
int);
void intercept_child_info(pid_t, pid_t);
void intercept_syscall_result(int, pid_t, int, const char *, int, char *,
void intercept_syscall_result(int, pid_t, int, const char *, int, const char *,
void *, int, int, void *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd-syscalls.c,v 1.3 2002/06/18 01:37:12 thorpej Exp $ */
/* $NetBSD: netbsd-syscalls.c,v 1.4 2002/06/18 02:49:09 thorpej Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: netbsd-syscalls.c,v 1.3 2002/06/18 01:37:12 thorpej Exp $");
__RCSID("$NetBSD: netbsd-syscalls.c,v 1.4 2002/06/18 02:49:09 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -104,7 +104,7 @@ __RCSID("$NetBSD: netbsd-syscalls.c,v 1.3 2002/06/18 01:37:12 thorpej Exp $");
#include "intercept.h"
struct emulation {
char *name; /* Emulation name */
const char *name; /* Emulation name */
const char * const *sysnames; /* Array of system call names */
int nsysnames; /* Number of */
};
@ -198,7 +198,7 @@ nbsd_detach(int fd, pid_t pid)
static int
nbsd_open(void)
{
char *path = "/dev/systrace";
const char * const path = "/dev/systrace";
int fd;
fd = open(path, O_RDONLY, 0);