summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2012-02-29 19:50:49 +0000
committerbrueffer <brueffer@FreeBSD.org>2012-02-29 19:50:49 +0000
commit8d8452be939e162835b51461ccbfefae3dc0a250 (patch)
tree5132c2168b87673cddfa27aa6bf0c5323fee9f78 /tools
parent64be263fa25e9eeabd2655a2f9da2fded3ea922a (diff)
downloadFreeBSD-src-8d8452be939e162835b51461ccbfefae3dc0a250.zip
FreeBSD-src-8d8452be939e162835b51461ccbfefae3dc0a250.tar.gz
Fix order of arguments to lseek().
PR: 160867 Submitted by: Henning Petersen <henning.petersen@t-online.de> MFC after: 1 week
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/security/cap_test/cap_test_capmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/regression/security/cap_test/cap_test_capmode.c b/tools/regression/security/cap_test/cap_test_capmode.c
index 3731990..5392756 100644
--- a/tools/regression/security/cap_test/cap_test_capmode.c
+++ b/tools/regression/security/cap_test/cap_test_capmode.c
@@ -117,7 +117,7 @@ test_capmode(void)
CHECK_SYSCALL_SUCCEEDS(close, fd_close);
CHECK_SYSCALL_SUCCEEDS(dup, fd_file);
CHECK_SYSCALL_SUCCEEDS(fstat, fd_file, &sb);
- CHECK_SYSCALL_SUCCEEDS(lseek, fd_file, SEEK_SET, 0);
+ CHECK_SYSCALL_SUCCEEDS(lseek, fd_file, 0, SEEK_SET);
CHECK_SYSCALL_SUCCEEDS(msync, &fd_file, 8192, MS_ASYNC);
CHECK_SYSCALL_SUCCEEDS(profil, NULL, 0, 0, 0);
CHECK_SYSCALL_SUCCEEDS(read, fd_file, &ch, sizeof(ch));
OpenPOWER on IntegriCloud