Deleted Added
full compact
snake_saver.c (10555) snake_saver.c (11857)
1/*-
2 * Copyright (c) 1995 S�ren Schmidt
3 * 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

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1995 S�ren Schmidt
3 * 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

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $Id: snake_saver.c,v 1.4 1995/05/30 06:06:18 rgrimes Exp $
28 * $Id: snake_saver.c,v 1.5 1995/09/04 03:02:08 peter Exp $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/conf.h>
34#include <sys/exec.h>
35#include <sys/sysent.h>
36#include <sys/lkm.h>

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

94 set_border(scp->border);
95 scrn_blanked = 0;
96 scp->start = 0;
97 scp->end = scp->xsize * scp->ysize;
98 }
99 }
100}
101
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/conf.h>
34#include <sys/exec.h>
35#include <sys/sysent.h>
36#include <sys/lkm.h>

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

94 set_border(scp->border);
95 scrn_blanked = 0;
96 scp->start = 0;
97 scp->end = scp->xsize * scp->ysize;
98 }
99 }
100}
101
102saver_load(struct lkm_table *lkmtp, int cmd)
102snake_saver_load(struct lkm_table *lkmtp, int cmd)
103{
104 (*current_saver)(0);
105 old_saver = current_saver;
106 current_saver = snake_saver;
107 uprintf("snake screen saver installed\n");
108 return 0;
109}
110
103{
104 (*current_saver)(0);
105 old_saver = current_saver;
106 current_saver = snake_saver;
107 uprintf("snake screen saver installed\n");
108 return 0;
109}
110
111saver_unload(struct lkm_table *lkmtp, int cmd)
111snake_saver_unload(struct lkm_table *lkmtp, int cmd)
112{
113 (*current_saver)(0);
114 current_saver = old_saver;
115 uprintf("snake screen saver removed\n");
116 return 0;
117}
118
112{
113 (*current_saver)(0);
114 current_saver = old_saver;
115 uprintf("snake screen saver removed\n");
116 return 0;
117}
118
119saver_init(struct lkm_table *lkmtp, int cmd, int ver)
119snake_saver_mod(struct lkm_table *lkmtp, int cmd, int ver)
120{
120{
121 DISPATCH(lkmtp, cmd, ver, saver_load, saver_unload, nosys);
121 DISPATCH(lkmtp, cmd, ver, snake_saver_load, snake_saver_unload, nosys);
122}
122}