Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/systrace Some const poisoning.
details: https://anonhg.NetBSD.org/src/rev/dcc6c4828efc
branches: trunk
changeset: 532934:dcc6c4828efc
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Jun 18 02:49:08 2002 +0000
description:
Some const poisoning.
diffstat:
bin/systrace/filter.c | 6 +++---
bin/systrace/intercept.c | 6 +++---
bin/systrace/intercept.h | 8 ++++----
bin/systrace/netbsd-syscalls.c | 8 ++++----
4 files changed, 14 insertions(+), 14 deletions(-)
diffs (126 lines):
diff -r 107b5efc735a -r dcc6c4828efc bin/systrace/filter.c
--- a/bin/systrace/filter.c Tue Jun 18 02:42:16 2002 +0000
+++ b/bin/systrace/filter.c Tue Jun 18 02:49:08 2002 +0000
@@ -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 @@
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 */
diff -r 107b5efc735a -r dcc6c4828efc bin/systrace/intercept.c
--- a/bin/systrace/intercept.c Tue Jun 18 02:42:16 2002 +0000
+++ b/bin/systrace/intercept.c Tue Jun 18 02:49:08 2002 +0000
@@ -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 @@
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;
diff -r 107b5efc735a -r dcc6c4828efc bin/systrace/intercept.h
--- a/bin/systrace/intercept.h Tue Jun 18 02:42:16 2002 +0000
+++ b/bin/systrace/intercept.h Tue Jun 18 02:49:08 2002 +0000
@@ -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 @@
#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 @@
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 *);
diff -r 107b5efc735a -r dcc6c4828efc bin/systrace/netbsd-syscalls.c
--- a/bin/systrace/netbsd-syscalls.c Tue Jun 18 02:42:16 2002 +0000
+++ b/bin/systrace/netbsd-syscalls.c Tue Jun 18 02:49:08 2002 +0000
@@ -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@localhost>
@@ -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 @@
#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 @@
static int
nbsd_open(void)
{
- char *path = "/dev/systrace";
+ const char * const path = "/dev/systrace";
int fd;
fd = open(path, O_RDONLY, 0);
Home |
Main Index |
Thread Index |
Old Index