aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>2000-07-11 19:30:53 +0000
committerGreg McGary <greg@mcgary.org>2000-07-11 19:30:53 +0000
commitc62f5cab71d973f3f36f167ac4ea2fd3ebbb43f5 (patch)
tree24bb87eb0863c6e1755221a62dc638b95fc19802 /sysdeps/unix/sysv
parent19624ed68fd3cb8380dc139459ddb11652ab730a (diff)
downloadglibc-c62f5cab71d973f3f36f167ac4ea2fd3ebbb43f5.zip
glibc-c62f5cab71d973f3f36f167ac4ea2fd3ebbb43f5.tar.gz
glibc-c62f5cab71d973f3f36f167ac4ea2fd3ebbb43f5.tar.bz2
* include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
Add extra level of macro expansion. [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise. * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition is available at the time `select' prototype is declared. * sysdeps/unix/make-syscalls.sh: Remove unused variables. Collect non-versioned weak aliases. Consider only non-versioned aliases for the user-visible systemcall name. Do checks inline with call to primitive system call. * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to stand-alone bounds checks to suppress unused value warnings. * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise. 2000-07-11 Greg McGary <greg@mcgary.org> * include/libc-symbols.h [!__ASSEMBLER__] (strong_alias): Add extra level of macro expansion. [!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise. * sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition is available at the time `select' prototype is declared. * sysdeps/unix/make-syscalls.sh: Remove unused variables. Collect non-versioned weak aliases. Consider only non-versioned aliases for the user-visible systemcall name. Do checks inline with call to primitive system call. * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to stand-alone bounds checks to suppress unused value warnings. * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/ptrace.c16
-rw-r--r--sysdeps/unix/sysv/linux/sysctl.c6
2 files changed, 11 insertions, 11 deletions
diff --git a/sysdeps/unix/sysv/linux/ptrace.c b/sysdeps/unix/sysv/linux/ptrace.c
index 3ed1af6..07d8795 100644
--- a/sysdeps/unix/sysv/linux/ptrace.c
+++ b/sysdeps/unix/sysv/linux/ptrace.c
@@ -55,40 +55,40 @@ ptrace (enum __ptrace_request request, ...)
case PTRACE_POKETEXT:
case PTRACE_POKEDATA:
case PTRACE_POKEUSER:
- CHECK_1 ((int *) addr);
- CHECK_1 ((int *) data);
+ (void) CHECK_1 ((int *) addr);
+ (void) CHECK_1 ((int *) data);
break;
case PTRACE_GETREGS:
case PTRACE_SETREGS:
#ifdef __i386__
- CHECK_1 ((struct user_regs_struct *) data);
+ (void) CHECK_1 ((struct user_regs_struct *) data);
#else
/* We don't know the size of data, so the best we can do is ensure
that `data' is valid for at least one word. */
- CHECK_1 ((int *) data);
+ (void) CHECK_1 ((int *) data);
#endif
break;
case PTRACE_GETFPREGS:
case PTRACE_SETFPREGS:
#ifdef __i386__
- CHECK_1 ((struct user_fpregs_struct *) data);
+ (void) CHECK_1 ((struct user_fpregs_struct *) data);
#else
/* We don't know the size of data, so the best we can do is ensure
that `data' is valid for at least one word. */
- CHECK_1 ((int *) data);
+ (void) CHECK_1 ((int *) data);
#endif
break;
case PTRACE_GETFPXREGS:
case PTRACE_SETFPXREGS:
#ifdef __i386__
- CHECK_1 ((struct user_fpxregs_struct *) data);
+ (void) CHECK_1 ((struct user_fpxregs_struct *) data);
#else
/* We don't know the size of data, so the best we can do is ensure
that `data' is valid for at least one word. */
- CHECK_1 ((int *) data);
+ (void) CHECK_1 ((int *) data);
#endif
break;
};
diff --git a/sysdeps/unix/sysv/linux/sysctl.c b/sysdeps/unix/sysv/linux/sysctl.c
index d2f5170..917ada1 100644
--- a/sysdeps/unix/sysv/linux/sysctl.c
+++ b/sysdeps/unix/sysv/linux/sysctl.c
@@ -40,9 +40,9 @@ __sysctl (int *name, int nlen, void *oldval, size_t *oldlenp,
newval: newval,
newlen: newlen
};
- CHECK_N (name, nlen);
- CHECK_N (oldval, *oldlenp);
- CHECK_N (newval, newlen);
+ (void) CHECK_N (name, nlen);
+ (void) CHECK_N (oldval, *oldlenp);
+ (void) CHECK_N (newval, newlen);
return INLINE_SYSCALL (_sysctl, 1, __ptrvalue (&args));
}