chiark / gitweb /
pacct file has moved
[chiark-utils.git] / cprogs / acctdump.c
index 133104938fabd6d4b7d3b5ea7d872bf59ac8c0aa..151e11d69a79ba667214c9f71d3dafc26edf76d6 100644 (file)
@@ -293,7 +293,7 @@ static void processfile(FILE *file, const char *filename) {
     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 (;;) {
@@ -315,15 +315,12 @@ static void processnamedfile(const char *filename) {
 }
 
 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);