summaryrefslogtreecommitdiff
path: root/usr/src/lib/efcode/engine/package.c
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2020-01-20 01:54:27 -0800
committerToomas Soome <tsoome@me.com>2020-09-08 08:49:33 +0300
commit09e6639baaf32231365cb9895bf1e0ea006a2a60 (patch)
tree6ab6a5f33aa42e0efd069864b0d6700a15bd9579 /usr/src/lib/efcode/engine/package.c
parente4af2f17fac5babc25d094f1bf22dd06515f66c7 (diff)
downloadillumos-gate-09e6639baaf32231365cb9895bf1e0ea006a2a60.tar.gz
12885 efcode: smatch and build errors
Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/efcode/engine/package.c')
-rw-r--r--usr/src/lib/efcode/engine/package.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/lib/efcode/engine/package.c b/usr/src/lib/efcode/engine/package.c
index 54a75dfe88..2ba034c1a4 100644
--- a/usr/src/lib/efcode/engine/package.c
+++ b/usr/src/lib/efcode/engine/package.c
@@ -588,7 +588,7 @@ locate_package(fcode_env_t *env, char *start)
if ((next_p = strchr(p, ':')) != NULL)
*next_p++ = '\0';
tpath = MALLOC(strlen(p) + strlen(start) + 2);
- sprintf(tpath, "%s/%s", p, start);
+ (void) sprintf(tpath, "%s/%s", p, start);
if ((d = match_package_path(env, tpath)) != NULL) {
FREE(fpath);
FREE(tpath);
@@ -706,10 +706,10 @@ get_path(fcode_env_t *env, device_t *d)
name = get_package_name(env, d);
n = strlen(pre_path) + strlen(name) + 1;
path = MALLOC(n);
- strcpy(path, pre_path);
- strcat(path, name);
+ (void) strcpy(path, pre_path);
+ (void) strcat(path, name);
if (d->child && d->parent)
- strcat(path, "/");
+ (void) strcat(path, "/");
FREE(pre_path);
return (path);
}