summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-09-01 06:11:40 +0000
committercharnier <charnier@FreeBSD.org>1997-09-01 06:11:40 +0000
commit347508a51948d7f5efa1126217499e64e463d1e1 (patch)
tree3ac344eb4c76b12d151d47291c33ab3f94928b5b /usr.sbin
parenta08aff2d022dc4bb812023beb2d5878e4359b050 (diff)
downloadFreeBSD-src-347508a51948d7f5efa1126217499e64e463d1e1.zip
FreeBSD-src-347508a51948d7f5efa1126217499e64e463d1e1.tar.gz
Style in rcsid, sort #include.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ac/ac.86
-rw-r--r--usr.sbin/ac/ac.c9
2 files changed, 8 insertions, 7 deletions
diff --git a/usr.sbin/ac/ac.8 b/usr.sbin/ac/ac.8
index e1514f0..341226a 100644
--- a/usr.sbin/ac/ac.8
+++ b/usr.sbin/ac/ac.8
@@ -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
diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c
index ab4da9a..f59cf37 100644
--- a/usr.sbin/ac/ac.c
+++ b/usr.sbin/ac/ac.c
@@ -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
OpenPOWER on IntegriCloud