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

Diff for /src/usr.bin/tcfs/Attic/tcfsrmgroup.c between version 1.6 and 1.7

version 1.6, 2000/06/19 22:42:29 version 1.7, 2000/06/19 23:06:25
Line 59 
Line 59 
                         be_verbose = TRUE;                          be_verbose = TRUE;
                         break;                          break;
                 default:                  default:
                         fprintf(stderr, "Try %s --help for more informations.\n", argv[0]);                          fprintf(stderr,
                               "Try %s --help for more informations.\n", argv[0]);
                         exit(ER_UNKOPT);                          exit(ER_UNKOPT);
                 }                  }
   
Line 70 
Line 71 
                 char *buff = NULL;                  char *buff = NULL;
                 int len;                  int len;
   
                 buff = (char*)calloc(2048, sizeof(char));                  buff = (char *)calloc(2048, sizeof(char));
                 if (!buff)                  if (!buff)
                         tcfs_error(ER_MEM, NULL);                          tcfs_error(ER_MEM, NULL);
   
                 printf("Group id of the TCFS group to remove from the database: ");                  printf("Group ID of the TCFS group to remove from the database: ");
                 fgets(buff, 2048, stdin);                  fgets(buff, 2048, stdin);
                 len = strlen(buff) - 1;                  len = strlen(buff) - 1;
                 buff[len] = buff[len] == '\n' ? 0 : buff[len];                  buff[len] = buff[len] == '\n' ? 0 : buff[len];

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7