aboutgitcodebugslistschat
path: root/passt.c
diff options
context:
space:
mode:
Diffstat (limited to 'passt.c')
-rw-r--r--passt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/passt.c b/passt.c
index 038d50a..22934a2 100644
--- a/passt.c
+++ b/passt.c
@@ -339,8 +339,7 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
- if (madvise(pkt_buf, TAP_BUF_BYTES, MADV_HUGEPAGE))
- perror("madvise");
+ madvise(pkt_buf, TAP_BUF_BYTES, MADV_HUGEPAGE);
__openlog(log_name, 0, LOG_DAEMON);