diff options
author | charnier <charnier@FreeBSD.org> | 1997-07-15 09:55:59 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-07-15 09:55:59 +0000 |
commit | 783e86e99e0924be333e11330c40137ea8c44822 (patch) | |
tree | 29dd8879e849b7d48c62aa01d238cef50c502279 /usr.bin/ipcs/ipcs.c | |
parent | 59438faa4f3256f5f366795ac7977f9113626afc (diff) | |
download | FreeBSD-src-783e86e99e0924be333e11330c40137ea8c44822.zip FreeBSD-src-783e86e99e0924be333e11330c40137ea8c44822.tar.gz |
Add rcsid, Remove unused vars.
Diffstat (limited to 'usr.bin/ipcs/ipcs.c')
-rw-r--r-- | usr.bin/ipcs/ipcs.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c index 28db9b0..5eee8b1 100644 --- a/usr.bin/ipcs/ipcs.c +++ b/usr.bin/ipcs/ipcs.c @@ -23,18 +23,21 @@ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (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: ipcs.c,v 1.8 1997/02/22 19:55:18 peter Exp $ */ +#ifndef lint +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ + +#include <err.h> +#include <fcntl.h> +#include <kvm.h> +#include <nlist.h> +#include <paths.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> -#include <fcntl.h> -#include <paths.h> -#include <nlist.h> -#include <kvm.h> -#include <err.h> #include <sys/types.h> #include <sys/param.h> @@ -200,7 +203,7 @@ main(argc, argv) case 0: break; case -1: - errx(1, "unable to read kernel symbol table."); + errx(1, "unable to read kernel symbol table"); default: #ifdef notdef /* they'll be told more civilly later */ warnx("nlist failed"); @@ -439,8 +442,6 @@ main(argc, argv) if ((xsema[i].sem_perm.mode & SEM_ALLOC) != 0) { char ctime_buf[100], otime_buf[100]; struct semid_ds *semaptr = &xsema[i]; - int j, value; - union semun junk; cvt_time(semaptr->sem_otime, otime_buf); cvt_time(semaptr->sem_ctime, ctime_buf); |