WARNS6 cleanup (1803 warnings).
authorPeter Avalos <pavalos@dragonflybsd.org>
Thu, 7 Sep 2006 21:19:45 +0000 (21:19 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Thu, 7 Sep 2006 21:19:45 +0000 (21:19 +0000)
commitac79378fe539692a6d6a918a0216b2cc35d8e9bc
tree0f5e52be9a29f02394cbac4c71171a5dfaeb7138
parent8d6acbd16493a1e70c2ff3a2d1c98fb302c4ac44
WARNS6 cleanup (1803 warnings).

ANSI function declarations.

Staticize functions.

Rename local variables that shadow globals.

Use string functions from libc instead of creating our own.

Remove void casts for unchecked function returns.

Spell parameter correctly.

Don't try to return a value from void functions.

Remove compat library requirement (gtty -> ioctl).

Add new function "dowarp" that calls warp() from play.c.  (Taken from
NetBSD).

Change chars that are used for numeric values to shorts so they can be
properly used as array indexes.
53 files changed:
games/trek/Makefile
games/trek/abandon.c
games/trek/attack.c
games/trek/autover.c
games/trek/capture.c
games/trek/cgetc.c
games/trek/check_out.c
games/trek/checkcond.c
games/trek/compkl.c
games/trek/computer.c
games/trek/damage.c
games/trek/damaged.c
games/trek/dcrept.c
games/trek/destruct.c
games/trek/dock.c
games/trek/dumpgame.c
games/trek/dumpme.c
games/trek/dumpssradio.c
games/trek/events.c
games/trek/externs.c
games/trek/getcodi.c
games/trek/getpar.c
games/trek/getpar.h
games/trek/help.c
games/trek/impulse.c
games/trek/initquad.c
games/trek/kill.c
games/trek/klmove.c
games/trek/lose.c
games/trek/lrscan.c
games/trek/main.c
games/trek/move.c
games/trek/nova.c
games/trek/out.c
games/trek/phaser.c
games/trek/play.c
games/trek/ram.c
games/trek/ranf.c
games/trek/rest.c
games/trek/schedule.c
games/trek/score.c
games/trek/setup.c
games/trek/setwarp.c
games/trek/shield.c
games/trek/snova.c
games/trek/srscan.c
games/trek/systemname.c
games/trek/torped.c
games/trek/trek.h
games/trek/utility.c
games/trek/visual.c
games/trek/warp.c
games/trek/win.c