Style in rcsid, sort #include.

This commit is contained in:
charnier 1997-09-01 06:11:40 +00:00
parent a08aff2d02
commit 347508a519
2 changed files with 8 additions and 7 deletions

View File

@ -28,7 +28,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $Id$
.\" $Id: ac.8,v 1.9 1997/02/22 16:01:10 peter Exp $
.\"
.Dd March 15, 1994
.Dt AC 8
@ -89,7 +89,7 @@ Display totals for the given individuals only.
.El
.Pp
If no arguments are given,
.Nm ac
.Nm
displays the total connect time for all
accounts with login sessions recorded in
.Pa wtmp .
@ -119,7 +119,7 @@ to be charged out at a different rate than
.Pa other .
.Pp
The
.Nm ac
.Nm
utility exits 0 on success, and >0 if a fatal error occurs.
.Sh FILES
.Bl -tag -width /var/log/wtmp.[0-7] -compact

View File

@ -14,21 +14,22 @@
*/
#ifndef lint
static char rcsid[] = "$Id: ac.c,v 1.6 1997/02/22 16:01:11 peter Exp $";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */
#include <sys/types.h>
#include <sys/file.h>
#include <sys/time.h>
#include <err.h>
#include <errno.h>
#include <locale.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <utmp.h>
#include <unistd.h>
#include <locale.h>
#include <utmp.h>
/*
* this is for our list of currently logged in sessions