Print this page
10138 smatch fixes for usr/src/cmd/sgs

@@ -27,10 +27,14 @@
  *      Copyright (c) 1988 AT&T
  *        All Rights Reserved
  */
 
 /*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
+/*
  * Utility functions
  */
 #include <unistd.h>
 #include <stdio.h>
 #include <stdarg.h>

@@ -317,11 +321,11 @@
  *      cbfunc - NULL, or pointer to function to call if a translation is
  *              successful.
  */
 static int
 str2chr(Lm_list *lml, int ndx, int argc, char **argv, char *arg, int c,
-    const char *opt, size_t optsz, int cbfunc(int))
+    const char *opt, size_t optsz, int (*cbfunc)(int))
 {
         if (optsz == 0) {
                 /*
                  * Compare a single option (ie. there's no associated option
                  * argument).