summaryrefslogtreecommitdiff
path: root/usr/src/lib/efcode/fcdriver/misc.c
diff options
context:
space:
mode:
authorDan McDonald <danmcd@joyent.com>2020-09-22 10:39:49 -0400
committerDan McDonald <danmcd@joyent.com>2020-09-22 10:39:49 -0400
commit267e12a7d9bf6e5fcefb9cc00f46bfff0dc5226e (patch)
tree19a3941920d0039c35d53a5cbee189b5ca51995a /usr/src/lib/efcode/fcdriver/misc.c
parent517abc5c668925e6092495bf332233c3599980d2 (diff)
parente9faba760cdf80d7dfa110fe0830917ab94668c2 (diff)
downloadillumos-joyent-vpc.tar.gz
Merge branch 'master' into vpcvpc
Diffstat (limited to 'usr/src/lib/efcode/fcdriver/misc.c')
-rw-r--r--usr/src/lib/efcode/fcdriver/misc.c8
1 files changed, 3 insertions, 5 deletions
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 <stdio.h>
#include <stdlib.h>
#include <strings.h>
@@ -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)