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

Diff for /src/usr.bin/showmount/showmount.c between version 1.17 and 1.18

version 1.17, 2009/10/27 23:59:43 version 1.18, 2015/08/20 22:32:42
Line 235 
Line 235 
         if (!xdr_bool(xdrsp, &bool))          if (!xdr_bool(xdrsp, &bool))
                 return (0);                  return (0);
         while (bool) {          while (bool) {
                 mp = (struct mountlist *)malloc(sizeof(struct mountlist));                  mp = malloc(sizeof(struct mountlist));
                 if (mp == NULL)                  if (mp == NULL)
                         return (0);                          return (0);
                 mp->ml_left = mp->ml_right = (struct mountlist *)0;                  mp->ml_left = mp->ml_right = (struct mountlist *)0;
Line 313 
Line 313 
         if (!xdr_bool(xdrsp, &bool))          if (!xdr_bool(xdrsp, &bool))
                 return (0);                  return (0);
         while (bool) {          while (bool) {
                 ep = (struct exportslist *)malloc(sizeof(struct exportslist));                  ep = malloc(sizeof(struct exportslist));
                 if (ep == NULL)                  if (ep == NULL)
                         return (0);                          return (0);
                 ep->ex_groups = (struct grouplist *)0;                  ep->ex_groups = (struct grouplist *)0;
Line 323 
Line 323 
                 if (!xdr_bool(xdrsp, &grpbool))                  if (!xdr_bool(xdrsp, &grpbool))
                         return (0);                          return (0);
                 while (grpbool) {                  while (grpbool) {
                         gp = (struct grouplist *)malloc(                          gp = malloc(sizeof(struct grouplist));
                             sizeof(struct grouplist));  
                         if (gp == NULL)                          if (gp == NULL)
                                 return (0);                                  return (0);
                         strp = gp->gr_name;                          strp = gp->gr_name;

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