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

Diff for /src/usr.bin/apropos/Attic/apropos.c between version 1.11 and 1.13

version 1.11, 2005/10/17 19:04:19 version 1.13, 2007/08/06 19:16:06
Line 99 
Line 99 
         if (argc < 1)          if (argc < 1)
                 usage();                  usage();
   
         if ((found = malloc((u_int)argc * sizeof(int))) == NULL)          if ((found = calloc(argc, sizeof(int))) == NULL)
                 err(1, NULL);                  err(1, NULL);
         memset(found, 0, argc * sizeof(int));  
   
         for (p = argv; *p; ++p)                 /* convert to lower-case */          for (p = argv; *p; ++p)                 /* convert to lower-case */
                 lowstr(*p, *p);                  lowstr(*p, *p);
Line 218 
Line 217 
 {  {
   
         (void)fprintf(stderr,          (void)fprintf(stderr,
             "usage: apropos [-C file] [-M path] [-m path] keyword [...]\n");              "usage: apropos [-C file] [-M path] [-m path] keyword ...\n");
         exit(1);          exit(1);
 }  }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.13