Resolve the following problems: make[2]: Entering directory '/home/pmoore/sources/selinux-testsuite/selinux_testsuite-upstream/tests/shm' cc -g -O0 -Wall -D_GNU_SOURCE shmctl.c -o shmctl shmctl.c: In function 'main': shmctl.c:11:6: warning: variable 'num' set but not used int num = 1; ^ cc -g -O0 -Wall -D_GNU_SOURCE shmat.c -o shmat shmat.c: In function 'main': shmat.c:11:6: warning: variable 'num' set but not used int num = 1; ^ cc -g -O0 -Wall -D_GNU_SOURCE shmget.c -o shmget shmget.c: In function 'main': shmget.c:11:6: warning: variable 'num' set but not used int num = 1; ^ Signed-off-by: Paul Moore <paul@xxxxxxxxxxxxxx> --- tests/shm/shmat.c | 6 +----- tests/shm/shmctl.c | 6 +----- tests/shm/shmget.c | 6 +----- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/tests/shm/shmat.c b/tests/shm/shmat.c index 89ac299..704d676 100644 --- a/tests/shm/shmat.c +++ b/tests/shm/shmat.c @@ -8,20 +8,16 @@ int main(int argc, char **argv) { int ch; - int num = 1; int key = 0x8888; int id; int error; char *buf; - while ((ch = getopt(argc, argv, "k:-n:")) != -1) { + while ((ch = getopt(argc, argv, "k:")) != -1) { switch (ch) { case 'k': key = atoi(optarg); break; - case 'n': - num = atoi(optarg); - break; } } diff --git a/tests/shm/shmctl.c b/tests/shm/shmctl.c index 78397b6..d17a804 100644 --- a/tests/shm/shmctl.c +++ b/tests/shm/shmctl.c @@ -8,20 +8,16 @@ int main(int argc, char **argv) { int ch; - int num = 1; int key = 0x8888; int id; int error; struct shmid_ds buf; - while ((ch = getopt(argc, argv, "k:-n:")) != -1) { + while ((ch = getopt(argc, argv, "k:")) != -1) { switch (ch) { case 'k': key = atoi(optarg); break; - case 'n': - num = atoi(optarg); - break; } } diff --git a/tests/shm/shmget.c b/tests/shm/shmget.c index a04da25..42d6394 100644 --- a/tests/shm/shmget.c +++ b/tests/shm/shmget.c @@ -8,18 +8,14 @@ int main(int argc, char **argv) { int ch; - int num = 1; int key = 0x8888; int id; - while ((ch = getopt(argc, argv, "k:-n:")) != -1) { + while ((ch = getopt(argc, argv, "k:")) != -1) { switch (ch) { case 'k': key = atoi(optarg); break; - case 'n': - num = atoi(optarg); - break; } } _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.