Typos. A bunch of typos I've been collecting.
[vpp.git] / src / tools / g2 / events.c
index d4333bb..f17a69d 100644 (file)
@@ -142,7 +142,7 @@ static void make_sorted_pid_vector(void)
     pid_sort_t *psp;
     int i;
 
-    psp = g_pids = g_malloc(sizeof(pid_sort_t)*g_npids);
+    psp = g_pids = g_malloc0(sizeof(pid_sort_t)*g_npids);
 
     for (i = 0; i < PIDHASH_NBUCKETS; i++) {
         pp = s_pidhash[i];
@@ -191,7 +191,7 @@ static void make_sorted_pid_vector(void)
      * toggle between "chase" mode, snapshots, and the original
      * display method on short notice 
      */
-    g_original_pids = g_malloc(sizeof(pid_sort_t)*g_npids);
+    g_original_pids = g_malloc0(sizeof(pid_sort_t)*g_npids);
     memcpy (g_original_pids, g_pids, sizeof(pid_sort_t)*g_npids); 
 }
 
@@ -339,7 +339,7 @@ void add_clib_event(double delta, unsigned short track,
     event_t *ep;
 
     ep = add_ep++;
-    ep->time = (ulonglong) (delta * 1e9); /* time in intger nanoseconds */
+    ep->time = (ulonglong) (delta * 1e9); /* time in integer nanoseconds */
     ep->pid = find_or_add_pid(track);
     ep->code = event;
     ep->datum = index;