]> granicus.if.org Git - strace/commitdiff
linux/x32/syscallent.h: fix syscallent array initialisation on x32
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sat, 12 Nov 2016 10:20:51 +0000 (13:20 +0300)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Sat, 12 Nov 2016 18:03:55 +0000 (21:03 +0300)
Why gcc didn't complain about it? It is definitely an index clash.

* linux/x32/syscallent.h: Change initializer indices for empty records from
[327 ... 511] to [329 ... 511].

linux/x32/syscallent.h

index 10443d38c923b78a45dd859fefca5abeaae49e57..bd44450e01921f91bb1e38c231f54fa2f2a287f7 100644 (file)
 [326] = { 6,   TD,             SEN(copy_file_range),           "copy_file_range"       },
 [327] = { 6,   TD,             SEN(printargs),                 "64:preadv2"            },
 [328] = { 6,   TD,             SEN(printargs),                 "64:pwritev2"           },
-[327 ... 511] = { },
+[329 ... 511] = { },
 /*
  * x32-specific system call numbers start at 512 to avoid cache impact
  * for native 64-bit operation.