diff options
author | Frédéric Bérat <fberat@redhat.com> | 2023-06-01 16:27:47 +0200 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2023-06-01 13:01:32 -0400 |
commit | 29e25f6f136182fb3756d51e03dea7c4d1919dd9 (patch) | |
tree | 4d3950068c9fec569ae21055641b986632371fbb /crypt | |
parent | a952fcda58cd7aa191140fc9e7d453df212b9117 (diff) | |
download | glibc-29e25f6f136182fb3756d51e03dea7c4d1919dd9.zip glibc-29e25f6f136182fb3756d51e03dea7c4d1919dd9.tar.gz glibc-29e25f6f136182fb3756d51e03dea7c4d1919dd9.tar.bz2 |
tests: fix warn unused results
With fortification enabled, few function calls return result need to be
checked, has they get the __wur macro enabled.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'crypt')
-rw-r--r-- | crypt/cert.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypt/cert.c b/crypt/cert.c index 32c4386..5b4277f 100644 --- a/crypt/cert.c +++ b/crypt/cert.c @@ -99,7 +99,11 @@ get8 (char *cp) int i,j,t; for(i=0;i<8;i++){ - scanf("%2x",&t); + if (scanf("%2x",&t) < 1) + { + if(ferror(stdin)) + totfails++; + } if(feof(stdin)) good_bye(); for(j=0; j<8 ; j++) { |