Deleted Added
full compact
vidcontrol.c (75344) vidcontrol.c (75788)
1/*-
2 * Copyright (c) 1994-1996 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

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

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
29#ifndef lint
30static const char rcsid[] =
1/*-
2 * Copyright (c) 1994-1996 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

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

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
29#ifndef lint
30static const char rcsid[] =
31 "$FreeBSD: head/usr.sbin/vidcontrol/vidcontrol.c 75344 2001-04-09 17:24:29Z sobomax $";
31 "$FreeBSD: head/usr.sbin/vidcontrol/vidcontrol.c 75788 2001-04-21 13:50:32Z ache $";
32#endif /* not lint */
33
34#include <ctype.h>
35#include <err.h>
36#include <limits.h>
37#include <stdio.h>
38#include <stdlib.h>
39#include <string.h>

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

483
484void
485set_mouse_char(char *arg)
486{
487 struct mouse_info mouse;
488 long l;
489
490 l = strtol(arg, NULL, 0);
32#endif /* not lint */
33
34#include <ctype.h>
35#include <err.h>
36#include <limits.h>
37#include <stdio.h>
38#include <stdlib.h>
39#include <string.h>

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

483
484void
485set_mouse_char(char *arg)
486{
487 struct mouse_info mouse;
488 long l;
489
490 l = strtol(arg, NULL, 0);
491 if ((l < 0) || (l > UCHAR_MAX)) {
492 warnx("argument to -M must be 0 through %d", UCHAR_MAX);
491 if ((l < 0) || (l > UCHAR_MAX - 3)) {
492 warnx("argument to -M must be 0 through %d", UCHAR_MAX - 3);
493 return;
494 }
495 mouse.operation = MOUSE_MOUSECHAR;
496 mouse.u.mouse_char = (int)l;
497 ioctl(0, CONS_MOUSECTL, &mouse);
498}
499
500void

--- 218 unchanged lines hidden ---
493 return;
494 }
495 mouse.operation = MOUSE_MOUSECHAR;
496 mouse.u.mouse_char = (int)l;
497 ioctl(0, CONS_MOUSECTL, &mouse);
498}
499
500void

--- 218 unchanged lines hidden ---