pos= ftell(file); if (pos==-1) { perror(filename); exit(8); }
if (pos % sizeof(as)) {
fprintf(stderr, "%s: File size is not an integral number "
- "of accounting records", filename);
+ "of accounting records\n", filename);
exit(8);
}
for (;;) {
}
int main(int argc, const char *const *argv) {
-union { struct_acct ac; char c[1]; } xu;
myopt(&argv,cmdinfos);
if (!nobanner) printbanner();
-fprintf(stdout,"s=%d %d\n",(int)sizeof(struct_acct),
- (int)((char*)&xu.ac.ac_comm - xu.c));
if (usestdin) {
processfile(stdin,"<standard input>");
} else if (!*argv) {
- processnamedfile("/var/account/pacct");
+ processnamedfile("/var/log/account/pacct");
} else {
while (*argv) {
processnamedfile(*argv);