]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sysdeps: tst-bz21269: fix test parameter
authorSam James <sam@gentoo.org>
Fri, 4 Aug 2023 22:58:27 +0000 (23:58 +0100)
committerSam James <sam@gentoo.org>
Wed, 16 Aug 2023 20:01:37 +0000 (21:01 +0100)
All callers pass 1 or 0x11 anyway (same meaning according to man page),
but still.

Reviewed-by: DJ Delorie <dj@redhat.com>
Signed-off-by: Sam James <sam@gentoo.org>
sysdeps/unix/sysv/linux/i386/tst-bz21269.c

index 51d4a1b082a0283d471bae70feff8f48b3682c32..f508ef8f164bdfc8d702288b337fb272081797f2 100644 (file)
@@ -52,7 +52,7 @@ xset_thread_area (struct user_desc *u_info)
 static void
 xmodify_ldt (int func, const void *ptr, unsigned long bytecount)
 {
-  TEST_VERIFY_EXIT (syscall (SYS_modify_ldt, 1, ptr, bytecount) == 0);
+  TEST_VERIFY_EXIT (syscall (SYS_modify_ldt, func, ptr, bytecount) == 0);
 }
 
 static int