From 09e6639baaf32231365cb9895bf1e0ea006a2a60 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Mon, 20 Jan 2020 01:54:27 -0800 Subject: 12885 efcode: smatch and build errors Reviewed by: Igor Kozhukhov Reviewed by: Andy Fiddaman Approved by: Dan McDonald --- usr/src/lib/efcode/fcdriver/misc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'usr/src/lib/efcode/fcdriver/misc.c') diff --git a/usr/src/lib/efcode/fcdriver/misc.c b/usr/src/lib/efcode/fcdriver/misc.c index b2ea8a9e00..d0891aa9a6 100644 --- a/usr/src/lib/efcode/fcdriver/misc.c +++ b/usr/src/lib/efcode/fcdriver/misc.c @@ -24,8 +24,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include #include #include @@ -463,11 +461,11 @@ get_eeprom_value(fcode_env_t *env, char *name) FILE *fd; char buf[80], *p; - sprintf(buf, "eeprom '%s'", name); + (void) sprintf(buf, "eeprom '%s'", name); if ((fd = popen(buf, "r")) == NULL) return (NULL); - fgets(buf, sizeof (buf), fd); - pclose(fd); + (void) fgets(buf, sizeof (buf), fd); + (void) pclose(fd); if ((p = strchr(buf, '\n')) != NULL) *p = '\0'; if ((p = strchr(buf, '=')) != NULL) -- cgit v1.2.3