diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-22 09:14:34 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-22 09:25:11 +0200 |
commit | 1641088178538e4ae409d53bbcbbb06fa80ffca0 (patch) | |
tree | 6b32afcc32f8f82c2e20c517bdbc71e14afae7f2 /cpukit/libnetworking/sys/sysctl.h | |
parent | network: Delete unused in4_cksum() (diff) | |
download | rtems-1641088178538e4ae409d53bbcbbb06fa80ffca0.tar.bz2 |
network: Ensure matching syscall prototypes
Ensure that kernel and user space system call protoypes are identical.
Diffstat (limited to 'cpukit/libnetworking/sys/sysctl.h')
-rw-r--r-- | cpukit/libnetworking/sys/sysctl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libnetworking/sys/sysctl.h b/cpukit/libnetworking/sys/sysctl.h index 58ac3e007b..12e3845402 100644 --- a/cpukit/libnetworking/sys/sysctl.h +++ b/cpukit/libnetworking/sys/sysctl.h @@ -132,7 +132,7 @@ struct sysctl_req { size_t oldlen; size_t oldidx; int (*oldfunc)(struct sysctl_req *, const void *, size_t); - void *newptr; + const void *newptr; size_t newlen; size_t newidx; int (*newfunc)(struct sysctl_req *, void *, size_t); @@ -622,10 +622,10 @@ int kernel_sysctl(struct thread *td, int *name, u_int namelen, void *old, int kernel_sysctlbyname(struct thread *td, char *name, void *old, size_t *oldlenp, void *new, size_t newlen, size_t *retval); -int userland_sysctl(struct thread *td, int *name, u_int namelen, void *old, - size_t *oldlenp, int inkernel, void *new, size_t newlen, +int userland_sysctl(struct thread *td, const int *name, u_int namelen, void *old, + size_t *oldlenp, int inkernel, const void *new, size_t newlen, size_t *retval); -int sysctl_find_oid(int *name, u_int namelen, struct sysctl_oid **noid, +int sysctl_find_oid(const int *name, u_int namelen, struct sysctl_oid **noid, int *nindx, struct sysctl_req *req); int sysctl_wire_old_buffer(struct sysctl_req *req, size_t len); |