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

Diff for /src/usr.bin/rpcgen/rpc_util.c between version 1.16 and 1.17

version 1.16, 2012/12/05 23:20:26 version 1.17, 2015/08/20 22:32:41
Line 117 
Line 117 
   
         for (l = lstp; *l != NULL; l = (list **) & (*l)->next)          for (l = lstp; *l != NULL; l = (list **) & (*l)->next)
                 ;                  ;
         lst = ALLOC(list);          lst = malloc(sizeof(list));
         if (lst == NULL) {          if (lst == NULL) {
                 fprintf(stderr, "failed in alloc\n");                  fprintf(stderr, "failed in alloc\n");
                 exit(1);                  exit(1);
Line 444 
Line 444 
         char *name;          char *name;
         int len = strlen(pname) + strlen(vname) + strlen(ARGEXT) + 3;          int len = strlen(pname) + strlen(vname) + strlen(ARGEXT) + 3;
   
         name = (char *)malloc(len);          name = malloc(len);
         if (!name) {          if (!name) {
                 fprintf(stderr, "failed in malloc\n");                  fprintf(stderr, "failed in malloc\n");
                 exit(1);                  exit(1);
Line 463 
Line 463 
 {  {
         bas_type *ptr;          bas_type *ptr;
   
         if ((ptr = (bas_type *)malloc(sizeof(bas_type))) == (bas_type *)NULL) {          if ((ptr = malloc(sizeof(bas_type))) == (bas_type *)NULL) {
                 fprintf(stderr, "failed in malloc\n");                  fprintf(stderr, "failed in malloc\n");
                 exit(1);                  exit(1);
         }          }

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17