summaryrefslogtreecommitdiff
path: root/src/linux/sethostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/sethostname.c')
-rw-r--r--src/linux/sethostname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/sethostname.c b/src/linux/sethostname.c
index c94325e6..79a87078 100644
--- a/src/linux/sethostname.c
+++ b/src/linux/sethostname.c
@@ -3,5 +3,5 @@
int sethostname(const char *name, size_t len)
{
- return syscall2(__NR_sethostname, (long)name, len);
+ return syscall(SYS_sethostname, name, len);
}