Print this page
10130 smatch fixes for usr/src/cmd/fm

*** 18,28 **** * * CDDL HEADER END */ /* * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 2017, Joyent, Inc. All rights reserved. */ #include <fmdump.h> #include <stdio.h> #include <strings.h> --- 18,28 ---- * * CDDL HEADER END */ /* * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 2018, Joyent, Inc. */ #include <fmdump.h> #include <stdio.h> #include <strings.h>
*** 181,191 **** if (rp->rec_nrefs != 0) fmdump_printf(fp, "\n %s\n", efp->do_hdr); for (i = 0; i < rp->rec_nrefs; i++) { fmdump_printf(fp, " "); ! efp->do_func(lp, &rp->rec_xrefs[i], fp); } fmdump_printf(fp, "\n"); if (pctl) nvlist_prt(rp->rec_nvl, pctl); --- 181,191 ---- if (rp->rec_nrefs != 0) fmdump_printf(fp, "\n %s\n", efp->do_hdr); for (i = 0; i < rp->rec_nrefs; i++) { fmdump_printf(fp, " "); ! (void) efp->do_func(lp, &rp->rec_xrefs[i], fp); } fmdump_printf(fp, "\n"); if (pctl) nvlist_prt(rp->rec_nvl, pctl);