Print this page
10130 smatch fixes for usr/src/cmd/fm
@@ -21,10 +21,14 @@
/*
* 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>
#include <fm/libfmevent.h>
#include <net-snmp/net-snmp-config.h>
@@ -575,11 +579,11 @@
case 'R':
nhdl->nh_rootdir = strdup(optarg);
break;
default:
free(nhdl);
- return (usage(nhdl->nh_pname));
+ return (usage(argv[0]));
}
}
}
/*