summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-12-19 18:32:06 +0000
committerRichard Lowe <richlowe@richlowe.net>2019-02-01 19:02:52 +0000
commitb1f626711b7485860ff0a6eb5e6edc949958f605 (patch)
tree956d3353dc10884e36b5ca4524069dc3eeebebb0 /usr
parent8e4148b01b8967e1a9ff6fdb6c8a2baff7363432 (diff)
downloadillumos-joyent-b1f626711b7485860ff0a6eb5e6edc949958f605.tar.gz
10130 smatch fixes for usr/src/cmd/fm
Reviewed by: Gergő Doma <domag02@gmail.com> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr')
-rw-r--r--usr/src/cmd/fm/fmdump/common/fault.c4
-rw-r--r--usr/src/cmd/fm/notify/smtp-notify/common/smtp-notify.c7
-rw-r--r--usr/src/cmd/fm/notify/snmp-notify/common/snmp-notify.c6
3 files changed, 13 insertions, 4 deletions
diff --git a/usr/src/cmd/fm/fmdump/common/fault.c b/usr/src/cmd/fm/fmdump/common/fault.c
index 68f84faf5f..6019c7f294 100644
--- a/usr/src/cmd/fm/fmdump/common/fault.c
+++ b/usr/src/cmd/fm/fmdump/common/fault.c
@@ -20,7 +20,7 @@
*/
/*
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
- * Copyright (c) 2017, Joyent, Inc. All rights reserved.
+ * Copyright (c) 2018, Joyent, Inc.
*/
#include <fmdump.h>
@@ -183,7 +183,7 @@ flt_verb23_cmn(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp,
for (i = 0; i < rp->rec_nrefs; i++) {
fmdump_printf(fp, " ");
- efp->do_func(lp, &rp->rec_xrefs[i], fp);
+ (void) efp->do_func(lp, &rp->rec_xrefs[i], fp);
}
fmdump_printf(fp, "\n");
diff --git a/usr/src/cmd/fm/notify/smtp-notify/common/smtp-notify.c b/usr/src/cmd/fm/notify/smtp-notify/common/smtp-notify.c
index a94baffed6..ba42e20d91 100644
--- a/usr/src/cmd/fm/notify/smtp-notify/common/smtp-notify.c
+++ b/usr/src/cmd/fm/notify/smtp-notify/common/smtp-notify.c
@@ -22,6 +22,11 @@
/*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
*/
+
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -811,7 +816,7 @@ main(int argc, char *argv[])
break;
default:
free(nhdl);
- return (usage(nhdl->nh_pname));
+ return (usage(argv[0]));
}
}
}
diff --git a/usr/src/cmd/fm/notify/snmp-notify/common/snmp-notify.c b/usr/src/cmd/fm/notify/snmp-notify/common/snmp-notify.c
index 76ed1637a0..adb0c10032 100644
--- a/usr/src/cmd/fm/notify/snmp-notify/common/snmp-notify.c
+++ b/usr/src/cmd/fm/notify/snmp-notify/common/snmp-notify.c
@@ -23,6 +23,10 @@
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
#include <sys/fm/protocol.h>
#include <fm/fmd_snmp.h>
#include <fm/fmd_msg.h>
@@ -577,7 +581,7 @@ main(int argc, char *argv[])
break;
default:
free(nhdl);
- return (usage(nhdl->nh_pname));
+ return (usage(argv[0]));
}
}
}