[tor-commits] [torsocks/master] Use SYS_ from <sys/syscall.h>.
dgoulet at torproject.org
dgoulet at torproject.org
Fri Apr 4 22:40:26 UTC 2014
commit 9de86e408b7b23c20131587667e3fdc5f7dad749
Author: Linus Nordberg <linus at nordberg.se>
Date: Sun Aug 25 10:39:12 2013 +0200
Use SYS_ from <sys/syscall.h>.
__NR_ are not portable.
Signed-off-by: David Goulet <dgoulet at ev0ke.net>
---
src/lib/syscall.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/lib/syscall.c b/src/lib/syscall.c
index c2cd114..af60060 100644
--- a/src/lib/syscall.c
+++ b/src/lib/syscall.c
@@ -74,13 +74,13 @@ LIBC_SYSCALL_RET_TYPE tsocks_syscall(long int __number, va_list args)
DBG("[syscall] Syscall libc wrapper number %ld called", __number);
switch (__number) {
- case __NR_socket:
+ case SYS_socket:
ret = handle_socket(args);
break;
- case __NR_connect:
+ case SYS_connect:
ret = handle_connect(args);
break;
- case __NR_close:
+ case SYS_close:
ret = handle_close(args);
break;
default:
More information about the tor-commits
mailing list