- ittysfil = fopen(Etcttys, "r");
- if(ittysfil == NULL) {
- fprintf(stderr, "Cannot open %s for output: %s\n",
- Etcttys, sys_errlist[errno]);
- exit(1);
- }
- nttysfil = fopen(NEtcttys, "a");
- if(nttysfil == NULL) {
- fprintf(stderr, "Cannot open %s for output: %s\n",
- NEtcttys, sys_errlist[errno]);
- exit(1);
- }
- (void)fseek(ittysfil, ttyslnbeg, 0);
- if(fgets(lbuf, BUFSIZ, ittysfil) == NULL) {
+ (void) fseek(ttysfile, ttyslnbeg, 0);
+ if(fgets(lbuf, BUFSIZ, ttysfile) == NULL) {