diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2017-09-25 23:00:34 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2017-09-25 23:00:34 +0000 |
commit | 01fa751500be7710a754e2dd5f0a8f18b20785e4 (patch) | |
tree | 9052c4e1255cf50e4f8081767b2c8c30a78be8d8 /sys | |
parent | c86e1ca236d2b91ddd4f535810e0946d03a4a636 (diff) |
sendsyslog should take a const char * everywhere.
okay bluhm@, deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_log.c | 4 | ||||
-rw-r--r-- | sys/kern/syscalls.master | 4 | ||||
-rw-r--r-- | sys/sys/syscall.h | 4 | ||||
-rw-r--r-- | sys/sys/syscallargs.h | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/kern/subr_log.c b/sys/kern/subr_log.c index 6fbab42b352..2ac5532087d 100644 --- a/sys/kern/subr_log.c +++ b/sys/kern/subr_log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_log.c,v 1.52 2017/08/08 14:23:23 bluhm Exp $ */ +/* $OpenBSD: subr_log.c,v 1.53 2017/09/25 23:00:33 espie Exp $ */ /* $NetBSD: subr_log.c,v 1.11 1996/03/30 22:24:44 christos Exp $ */ /* @@ -374,7 +374,7 @@ int sys_sendsyslog(struct proc *p, void *v, register_t *retval) { struct sys_sendsyslog_args /* { - syscallarg(const void *) buf; + syscallarg(const char *) buf; syscallarg(size_t) nbyte; syscallarg(int) flags; } */ *uap = v; diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index d3ef28a84a9..9708ae86afb 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ -; $OpenBSD: syscalls.master,v 1.177 2017/08/12 00:03:10 tedu Exp $ +; $OpenBSD: syscalls.master,v 1.178 2017/09/25 23:00:33 espie Exp $ ; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -235,7 +235,7 @@ fd_set *ex, const struct timespec *ts, \ const sigset_t *mask); } 111 STD { int sys_sigsuspend(int mask); } -112 STD { int sys_sendsyslog(const void *buf, size_t nbyte, \ +112 STD { int sys_sendsyslog(const char *buf, size_t nbyte, \ int flags); } #ifdef KTRACE 113 STD { int sys_fktrace(int fd, int ops, \ diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h index 6de2ad623f6..efdb1c2d6f7 100644 --- a/sys/sys/syscall.h +++ b/sys/sys/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.187 2017/08/12 00:04:06 tedu Exp $ */ +/* $OpenBSD: syscall.h,v 1.188 2017/09/25 23:00:33 espie Exp $ */ /* * System call numbers. @@ -339,7 +339,7 @@ /* syscall: "sigsuspend" ret: "int" args: "int" */ #define SYS_sigsuspend 111 -/* syscall: "sendsyslog" ret: "int" args: "const void *" "size_t" "int" */ +/* syscall: "sendsyslog" ret: "int" args: "const char *" "size_t" "int" */ #define SYS_sendsyslog 112 /* syscall: "fktrace" ret: "int" args: "int" "int" "int" "pid_t" */ diff --git a/sys/sys/syscallargs.h b/sys/sys/syscallargs.h index 184199de287..2af8ebccc9b 100644 --- a/sys/sys/syscallargs.h +++ b/sys/sys/syscallargs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscallargs.h,v 1.190 2017/08/12 00:04:06 tedu Exp $ */ +/* $OpenBSD: syscallargs.h,v 1.191 2017/09/25 23:00:33 espie Exp $ */ /* * System call argument lists. @@ -563,7 +563,7 @@ struct sys_sigsuspend_args { }; struct sys_sendsyslog_args { - syscallarg(const void *) buf; + syscallarg(const char *) buf; syscallarg(size_t) nbyte; syscallarg(int) flags; }; |