1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-05 12:56:08 +00:00

Compile without warnings.

This commit is contained in:
Dag-Erling Smørgrav 1998-12-31 13:38:59 +00:00
parent a4e7707552
commit 52529398ad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42203
3 changed files with 10 additions and 9 deletions

View File

@ -25,7 +25,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: warp_saver.c,v 1.1 1998/12/27 22:03:09 des Exp $
* $Id: warp_saver.c,v 1.2 1998/12/28 14:20:13 des Exp $
*/
#include <sys/param.h>
@ -86,9 +86,9 @@ warp_saver(int blank)
saved_mode = scp->mode;
scp->mode = M_VGA_CG320;
scp->status |= SAVER_RUNNING|GRAPHICS_MODE;
save_palette(scp, (char *)save_pal);
save_palette(scp, save_pal);
set_mode(scp);
load_palette(scp, (char *)warp_pal);
load_palette(scp, warp_pal);
scrn_blanked++;
vid = (u_char *)Crtat;
splx(pl);
@ -107,7 +107,7 @@ warp_saver(int blank)
scp->mode = saved_mode;
scp->status &= ~(SAVER_RUNNING|GRAPHICS_MODE);
set_mode(scp);
load_palette(scp, (char *)save_pal);
load_palette(scp, save_pal);
saved_mode = 0;
splx(pl);
}

View File

@ -1,9 +1,10 @@
# $Id$
# $Id: Makefile,v 1.1 1998/12/27 22:03:09 des Exp $
KMOD= warp_saver
SRCS= warp_saver.c
NOMAN=
CFLAGS+= -I${.CURDIR}/..
CWARNFLAGS= -Wall -pedantic
.include <bsd.kmod.mk>

View File

@ -25,7 +25,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: warp_saver.c,v 1.1 1998/12/27 22:03:09 des Exp $
* $Id: warp_saver.c,v 1.2 1998/12/28 14:20:13 des Exp $
*/
#include <sys/param.h>
@ -86,9 +86,9 @@ warp_saver(int blank)
saved_mode = scp->mode;
scp->mode = M_VGA_CG320;
scp->status |= SAVER_RUNNING|GRAPHICS_MODE;
save_palette(scp, (char *)save_pal);
save_palette(scp, save_pal);
set_mode(scp);
load_palette(scp, (char *)warp_pal);
load_palette(scp, warp_pal);
scrn_blanked++;
vid = (u_char *)Crtat;
splx(pl);
@ -107,7 +107,7 @@ warp_saver(int blank)
scp->mode = saved_mode;
scp->status &= ~(SAVER_RUNNING|GRAPHICS_MODE);
set_mode(scp);
load_palette(scp, (char *)save_pal);
load_palette(scp, save_pal);
saved_mode = 0;
splx(pl);
}