- (void) write(2, buf+1, strlen(buf+1));
- } else
- (void) write(rem, buf, strlen(buf));
- if (lfp != NULL)
- (void) fwrite(buf+1, 1, strlen(buf+1), lfp);
+ (void)fprintf(stderr, "rdist: ");
+ (void)fprintf(stderr, fmt, a1, a2, a3);
+ fflush(stderr);
+ }
+ if (lfp != NULL) {
+ (void)fprintf(lfp, "rdist: ");
+ (void)fprintf(lfp, fmt, a1, a2, a3);
+ fflush(lfp);
+ }