accton.c (1554) | accton.c (8857) |
---|---|
1/* 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 53 unchanged lines hidden (view full) --- 62 case '?': 63 default: 64 usage(); 65 } 66 argc -= optind; 67 argv += optind; 68 69 switch(argc) { | 1/* 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 53 unchanged lines hidden (view full) --- 62 case '?': 63 default: 64 usage(); 65 } 66 argc -= optind; 67 argv += optind; 68 69 switch(argc) { |
70 case 0: | 70 case 0: |
71 if (acct(NULL)) { 72 (void)fprintf(stderr, 73 "accton: %s\n", strerror(errno)); 74 exit(1); 75 } 76 break; 77 case 1: 78 if (acct(*argv)) { --- 17 unchanged lines hidden --- | 71 if (acct(NULL)) { 72 (void)fprintf(stderr, 73 "accton: %s\n", strerror(errno)); 74 exit(1); 75 } 76 break; 77 case 1: 78 if (acct(*argv)) { --- 17 unchanged lines hidden --- |