Use static.
This commit is contained in:
parent
77e4f4547b
commit
7a3a3dd580
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bold8x16.h,v 1.10 2005/04/22 14:46:01 yamt Exp $ */
|
||||
/* $NetBSD: bold8x16.h,v 1.11 2005/06/28 00:44:22 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -42,7 +42,7 @@
|
||||
*/
|
||||
static u_char bold8x16_data[];
|
||||
|
||||
struct wsdisplay_font bold8x16 = {
|
||||
static struct wsdisplay_font bold8x16 = {
|
||||
"Boldface", /* typeface name */
|
||||
1, /* firstchar */
|
||||
254, /* numchars */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: gallant12x22.h,v 1.8 2005/04/22 14:46:01 yamt Exp $ */
|
||||
/* $NetBSD: gallant12x22.h,v 1.9 2005/06/28 00:44:22 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -37,7 +37,7 @@
|
||||
|
||||
static u_char gallant12x22_data[];
|
||||
|
||||
struct wsdisplay_font gallant12x22 = {
|
||||
static struct wsdisplay_font gallant12x22 = {
|
||||
"Gallant", /* typeface name */
|
||||
' ', /* firstchar */
|
||||
'~' - ' ' + 1, /* numchars */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lucida16x29.h,v 1.8 2005/04/22 14:46:01 yamt Exp $ */
|
||||
/* $NetBSD: lucida16x29.h,v 1.9 2005/06/28 00:44:22 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
|
||||
@ -65,7 +65,7 @@ This is the LEGAL NOTICE pertaining to the Lucida fonts from Bigelow & Holmes:
|
||||
|
||||
static u_char lucida16x29_data[];
|
||||
|
||||
struct wsdisplay_font lucida16x29 = {
|
||||
static struct wsdisplay_font lucida16x29 = {
|
||||
"Lucida", /* typeface name */
|
||||
' ', /* firstchar */
|
||||
'~' - ' ' + 1, /* numchars */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: omron12x20.h,v 1.5 2005/04/22 14:46:01 yamt Exp $ */
|
||||
/* $NetBSD: omron12x20.h,v 1.6 2005/06/28 00:44:22 thorpej Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
@ -78,7 +78,7 @@
|
||||
|
||||
static u_char omron12x20_data[];
|
||||
|
||||
struct wsdisplay_font omron12x20 = {
|
||||
static struct wsdisplay_font omron12x20 = {
|
||||
"omron12x20", /* typeface name */
|
||||
' ', /* firstchar */
|
||||
'~' - ' ' + 1, /* numchars */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: qvss8x15.h,v 1.9 2005/04/22 14:46:01 yamt Exp $ */
|
||||
/* $NetBSD: qvss8x15.h,v 1.10 2005/06/28 00:44:22 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986
|
||||
@ -70,7 +70,7 @@
|
||||
|
||||
static u_char qvss8x15_data[];
|
||||
|
||||
struct wsdisplay_font qvss8x15 = {
|
||||
static struct wsdisplay_font qvss8x15 = {
|
||||
"QVSS", /* typeface name */
|
||||
' ', /* firstchar */
|
||||
0377 - ' ' + 1, /* numchars */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sony12x24.h,v 1.7 2005/04/22 14:46:01 yamt Exp $ */
|
||||
/* $NetBSD: sony12x24.h,v 1.8 2005/06/28 00:44:22 thorpej Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
static u_char sony12x24_data[];
|
||||
|
||||
struct wsdisplay_font sony12x24 = {
|
||||
static struct wsdisplay_font sony12x24 = {
|
||||
"sony12x24", /* typeface name */
|
||||
' ', /* firstchar */
|
||||
0xff - ' ' + 1, /* numchars */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vt220iso8x16.h,v 1.5 2005/04/22 14:46:01 yamt Exp $ */
|
||||
/* $NetBSD: vt220iso8x16.h,v 1.6 2005/06/28 00:44:22 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993, 1994 Hellmuth Michaelis and Joerg Wunsch
|
||||
@ -45,7 +45,7 @@
|
||||
|
||||
static u_char vt220iso8x16_data[];
|
||||
|
||||
struct wsdisplay_font vt220iso8x16 = {
|
||||
static struct wsdisplay_font vt220iso8x16 = {
|
||||
"vt220iso8x16", /* typeface name */
|
||||
' ', /* firstchar */
|
||||
0xff - ' ' + 1, /* numchars */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vt220koi8x10.h,v 1.2 2005/04/22 14:46:01 yamt Exp $ */
|
||||
/* $NetBSD: vt220koi8x10.h,v 1.3 2005/06/28 00:44:22 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch
|
||||
@ -48,7 +48,7 @@
|
||||
|
||||
static u_char _VT220_KOI8_X_8X10_DATA[];
|
||||
|
||||
struct wsdisplay_font _VT220KX8X10 = {
|
||||
static struct wsdisplay_font _VT220KX8X10 = {
|
||||
_VT220_KOI8_X_8X10_STR, /* typeface name */
|
||||
'\0', /* firstchar */
|
||||
256, /* numchars */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vt220l8x10.h,v 1.7 2005/04/22 14:46:01 yamt Exp $ */
|
||||
/* $NetBSD: vt220l8x10.h,v 1.8 2005/06/28 00:44:22 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch
|
||||
@ -38,7 +38,7 @@
|
||||
|
||||
static u_char vt220l8x10_data[];
|
||||
|
||||
struct wsdisplay_font vt220l8x10 = {
|
||||
static struct wsdisplay_font vt220l8x10 = {
|
||||
"vt220l", /* typeface name */
|
||||
'\0', /* firstchar */
|
||||
256, /* numchars */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vt220l8x16.h,v 1.4 2005/04/22 14:46:01 yamt Exp $ */
|
||||
/* $NetBSD: vt220l8x16.h,v 1.5 2005/06/28 00:44:22 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
static u_char vt220l8x16_data[];
|
||||
|
||||
struct wsdisplay_font vt220l8x16 = {
|
||||
static struct wsdisplay_font vt220l8x16 = {
|
||||
"vt220l", /* typeface name */
|
||||
'\0', /* firstchar */
|
||||
256, /* numchars */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vt220l8x8.h,v 1.7 2005/04/22 14:46:01 yamt Exp $ */
|
||||
/* $NetBSD: vt220l8x8.h,v 1.8 2005/06/28 00:44:22 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch
|
||||
@ -38,7 +38,7 @@
|
||||
|
||||
static u_char vt220l8x8_data[];
|
||||
|
||||
struct wsdisplay_font vt220l8x8 = {
|
||||
static struct wsdisplay_font vt220l8x8 = {
|
||||
"vt220l", /* typeface name */
|
||||
'\0', /* firstchar */
|
||||
256, /* numchars */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: wsfontdev.c,v 1.8 2003/06/29 22:31:06 fvdl Exp $ */
|
||||
/* $NetBSD: wsfontdev.c,v 1.9 2005/06/28 00:44:22 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: wsfontdev.c,v 1.8 2003/06/29 22:31:06 fvdl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: wsfontdev.c,v 1.9 2005/06/28 00:44:22 thorpej Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -41,15 +41,6 @@ __KERNEL_RCSID(0, "$NetBSD: wsfontdev.c,v 1.8 2003/06/29 22:31:06 fvdl Exp $");
|
||||
|
||||
void wsfontattach(int);
|
||||
|
||||
dev_type_open(wsfontopen);
|
||||
dev_type_close(wsfontclose);
|
||||
dev_type_ioctl(wsfontioctl);
|
||||
|
||||
const struct cdevsw wsfont_cdevsw = {
|
||||
wsfontopen, wsfontclose, noread, nowrite, wsfontioctl,
|
||||
nostop, notty, nopoll, nommap, nokqfilter,
|
||||
};
|
||||
|
||||
static int wsfont_isopen;
|
||||
|
||||
void
|
||||
@ -59,7 +50,7 @@ wsfontattach(int n)
|
||||
wsfont_init();
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
wsfontopen(dev_t dev, int flag, int mode, struct proc *p)
|
||||
{
|
||||
|
||||
@ -69,7 +60,7 @@ wsfontopen(dev_t dev, int flag, int mode, struct proc *p)
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
wsfontclose(dev_t dev, int flag, int mode, struct proc *p)
|
||||
{
|
||||
|
||||
@ -77,7 +68,7 @@ wsfontclose(dev_t dev, int flag, int mode, struct proc *p)
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
static int
|
||||
wsfontioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
|
||||
{
|
||||
char nbuf[16];
|
||||
@ -111,3 +102,8 @@ wsfontioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
|
||||
return (EINVAL);
|
||||
}
|
||||
}
|
||||
|
||||
const struct cdevsw wsfont_cdevsw = {
|
||||
wsfontopen, wsfontclose, noread, nowrite, wsfontioctl,
|
||||
nostop, notty, nopoll, nommap, nokqfilter,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user