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

Diff for /src/usr.bin/gprof/printgprof.c between version 1.12 and 1.13

version 1.12, 2009/10/27 23:59:38 version 1.13, 2015/08/20 22:32:41
Line 50 
Line 50 
         /*          /*
          *      Sort the symbol table in by time           *      Sort the symbol table in by time
          */           */
     sortednlp = (nltype **) calloc( nname , sizeof(nltype *) );      sortednlp = calloc( nname , sizeof(nltype *) );
     if ( sortednlp == (nltype **) 0 )      if ( sortednlp == (nltype **) 0 )
         warnx("[printprof] ran out of memory for time sorting");          warnx("[printprof] ran out of memory for time sorting");
     for ( index = 0 ; index < nname ; index += 1 ) {      for ( index = 0 ; index < nname ; index += 1 ) {
Line 659 
Line 659 
          *      Now, sort regular function name alphbetically           *      Now, sort regular function name alphbetically
          *      to create an index.           *      to create an index.
          */           */
     namesortnlp = (nltype **) calloc( nname + ncycle , sizeof(nltype *) );      namesortnlp = calloc( nname + ncycle , sizeof(nltype *) );
     if ( namesortnlp == (nltype **) 0 )      if ( namesortnlp == (nltype **) 0 )
         warnx("ran out of memory for sorting");          warnx("ran out of memory for sorting");
     for ( index = 0 , nnames = 0 ; index < nname ; index++ ) {      for ( index = 0 , nnames = 0 ; index < nname ; index++ ) {

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