t/nvmept_trim: increase transfer size for some tests
[fio.git] / graph.c
diff --git a/graph.c b/graph.c
index c45954c7f79939b2e38cebacbc028d932076c234..3d2b6c96dd0ba12f3a4b7619d1ab2548d9ccbf5c 100644 (file)
--- a/graph.c
+++ b/graph.c
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  *
  */
 #include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
 #include <math.h>
 #include <assert.h>
 #include <stdlib.h>
@@ -713,8 +713,7 @@ static void graph_label_add_value(struct graph_label *i, void *value,
        struct graph *g = i->parent;
        struct graph_value *x;
 
-       x = malloc(sizeof(*x));
-       memset(x, 0, sizeof(*x));
+       x = calloc(1, sizeof(*x));
        INIT_FLIST_HEAD(&x->alias);
        INIT_FLIST_HEAD(&x->list);
        flist_add_tail(&x->list, &i->value_list);
@@ -999,7 +998,7 @@ const char *graph_find_tooltip(struct graph *g, int ix, int iy)
                                ydiff = fabs(yval - y);
 
                                /*
-                                * zero delta, or within or match critera, break
+                                * zero delta, or within or match criteria, break
                                 */
                                if (ydiff < best_delta) {
                                        best_delta = ydiff;