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

*** 20,29 **** --- 20,34 ---- */ /* * 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> #include <alloca.h> #include <errno.h>
*** 809,819 **** case 'R': nhdl->nh_rootdir = strdup(optarg); break; default: free(nhdl); ! return (usage(nhdl->nh_pname)); } } } /* --- 814,824 ---- case 'R': nhdl->nh_rootdir = strdup(optarg); break; default: free(nhdl); ! return (usage(argv[0])); } } } /*