]> diplodocus.org Git - nmh/blobdiff - uip/mhparam.c
Replaced snprintf() to convert an int with m_name().
[nmh] / uip / mhparam.c
index 9cc2718a8291f1df7a85bcb618561252218f124c..17705bc894346f04508edbdf4cac0e99805d5eb6 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * mhparam.c -- print mh_profile values
+/* mhparam.c -- print mh_profile values
  *
  * Originally contributed by
  * Jeffrey C Honig <Jeffrey_C_Honig@cornell.edu>
@@ -11,6 +10,7 @@
 
 #include <h/mh.h>
 #include <h/mts.h>
+#include <h/utils.h>
 
 #define MHPARAM_SWITCHES \
     X("components", 0, COMPSW) \
@@ -229,7 +229,7 @@ main(int argc, char **argv)
         * value (as determined after context is read).
          */
        for (ps = procs; ps->p_name; ps++)
-           printf ("%s: %s\n", ps->p_name, *ps->p_field ? *ps->p_field : "");
+           printf ("%s: %s\n", ps->p_name, FENDNULL(*ps->p_field));
 
     }