Deleted Added
full compact
lastcomm.c (129509) lastcomm.c (146466)
1/*
2 * Copyright (c) 1980, 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

--- 29 unchanged lines hidden (view full) ---

38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)lastcomm.c 8.1 (Berkeley) 6/6/93";
43#endif
44#endif /* not lint */
45#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1980, 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

--- 29 unchanged lines hidden (view full) ---

38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)lastcomm.c 8.1 (Berkeley) 6/6/93";
43#endif
44#endif /* not lint */
45#include <sys/cdefs.h>
46__FBSDID("$FreeBSD: head/usr.bin/lastcomm/lastcomm.c 129509 2004-05-20 19:25:27Z hmp $");
46__FBSDID("$FreeBSD: head/usr.bin/lastcomm/lastcomm.c 146466 2005-05-21 09:55:10Z ru $");
47
48#include <sys/param.h>
49#include <sys/stat.h>
50#include <sys/acct.h>
51
52#include <ctype.h>
53#include <err.h>
54#include <fcntl.h>

--- 219 unchanged lines hidden (view full) ---

274 lastname = devname(dev, S_IFCHR);
275 return (lastname);
276}
277
278static void
279usage(void)
280{
281 (void)fprintf(stderr,
47
48#include <sys/param.h>
49#include <sys/stat.h>
50#include <sys/acct.h>
51
52#include <ctype.h>
53#include <err.h>
54#include <fcntl.h>

--- 219 unchanged lines hidden (view full) ---

274 lastname = devname(dev, S_IFCHR);
275 return (lastname);
276}
277
278static void
279usage(void)
280{
281 (void)fprintf(stderr,
282"usage: lastcomm [-EScesu] [ -f file ] [command ...] [user ...] [tty ...]\n");
282"usage: lastcomm [-EScesu] [-f file] [command ...] [user ...] [terminal ...]\n");
283 exit(1);
284}
283 exit(1);
284}