[BACK]Return to commands.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / top

Diff for /src/usr.bin/top/commands.c between version 1.32 and 1.33

version 1.32, 2017/03/15 04:24:14 version 1.33, 2019/10/08 07:26:59
Line 46 
Line 46 
 #include <unistd.h>  #include <unistd.h>
 #include <sys/time.h>  #include <sys/time.h>
 #include <sys/resource.h>  #include <sys/resource.h>
   #include <stdbool.h>
   
 #include "top.h"  #include "top.h"
   
 #include "boolean.h"  
 #include "utils.h"  #include "utils.h"
 #include "machine.h"  #include "machine.h"
   
Line 158 
Line 158 
 static char *  static char *
 err_string(void)  err_string(void)
 {  {
         int cnt = 0, first = Yes, currerr = -1;          int cnt = 0, first = true, currerr = -1;
         static char string[STRMAX];          static char string[STRMAX];
         struct errs *errp;          struct errs *errp;
   
Line 186 
Line 186 
                                 (void) strlcat(string, "; ", sizeof string);                                  (void) strlcat(string, "; ", sizeof string);
                         }                          }
                         currerr = errp->err;                          currerr = errp->err;
                         first = Yes;                          first = true;
                 }                  }
                 if (str_addarg(string, sizeof string, errp->arg, first) >=                  if (str_addarg(string, sizeof string, errp->arg, first) >=
                     sizeof string)                      sizeof string)
                         return (err_listem);                          return (err_listem);
   
                 first = No;                  first = false;
         }          }
   
         /* add final message */          /* add final message */

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33