getopt.3: Ensure that 'nsecs' is used

Reported-by: Jonny Grant <jg@jguk.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-12-29 14:30:26 +01:00
parent d2d136f7e1
commit 26f418daaf
1 changed files with 2 additions and 1 deletions

View File

@ -413,7 +413,8 @@ main(int argc, char *argv[])
}
}
printf("flags=%d; tfnd=%d; optind=%d\\n", flags, tfnd, optind);
printf("flags=%d; tfnd=%d; nsecs=%d; optind=%d\\n",
flags, tfnd, nsecs, optind);
if (optind >= argc) {
fprintf(stderr, "Expected argument after options\\n");