Ansify non-ansified function definitions. No functional change.
OK ?
--
Alexandr Shadchin
Index: wsfont.c
===================================================================
RCS file: /cvs/src/sys/dev/wsfont/wsfont.c,v
retrieving revision 1.26
diff -u -p -r1.26 wsfont.c
--- wsfont.c 6 Jan 2012 14:55:38 -0000 1.26
+++ wsfont.c 6 Jan 2012 16:02:49 -0000
@@ -213,8 +213,7 @@ static struct font *wsfont_find0(int);
*/
static void wsfont_revbit(struct wsdisplay_font *);
static void
-wsfont_revbit(font)
- struct wsdisplay_font *font;
+wsfont_revbit(struct wsdisplay_font *font)
{
u_char *p, *m;
@@ -234,8 +233,7 @@ wsfont_revbit(font)
*/
static void wsfont_revbyte(struct wsdisplay_font *);
static void
-wsfont_revbyte(font)
- struct wsdisplay_font *font;
+wsfont_revbyte(struct wsdisplay_font *font)
{
int x, l, r, nr;
u_char *rp;
@@ -267,8 +265,7 @@ wsfont_revbyte(font)
* Enumerate the list of fonts
*/
void
-wsfont_enum(cb)
- void (*cb)(char *, int, int, int);
+wsfont_enum(void (*cb)(char *, int, int, int))
{
struct wsdisplay_font *f;
struct font *ent;
@@ -393,8 +390,7 @@ wsfont_init(void)
* Find a font by cookie. Called at splhigh.
*/
static struct font *
-wsfont_find0(cookie)
- int cookie;
+wsfont_find0(int cookie)
{
struct font *ent;
@@ -409,9 +405,7 @@ wsfont_find0(cookie)
* Find a font.
*/
int
-wsfont_find(name, width, height, stride)
- char *name;
- int width, height, stride;
+wsfont_find(char *name, int width, int height, int stride)
{
struct font *ent;
int s;
@@ -443,9 +437,7 @@ wsfont_find(name, width, height, stride)
* Add a font to the list.
*/
int
-wsfont_add(font, copy)
- struct wsdisplay_font *font;
- int copy;
+wsfont_add(struct wsdisplay_font *font, int copy)
{
static int cookiegen = 666;
struct font *ent;
@@ -496,8 +488,7 @@ wsfont_add(font, copy)
*/
#ifdef notyet
int
-wsfont_remove(cookie)
- int cookie;
+wsfont_remove(int cookie)
{
struct font *ent;
int s;
@@ -541,10 +532,8 @@ wsfont_remove(cookie)
* requested by the caller differs.
*/
int
-wsfont_lock(cookie, ptr, bitorder, byteorder)
- int cookie;
- struct wsdisplay_font **ptr;
- int bitorder, byteorder;
+wsfont_lock(int cookie, struct wsdisplay_font **ptr, int bitorder,
+ int byteorder)
{
struct font *ent;
int s, lc;
@@ -593,8 +582,7 @@ wsfont_lock(cookie, ptr, bitorder, byteo
* Get font flags and lockcount.
*/
int
-wsfont_getflg(cookie, flg, lc)
- int cookie, *flg, *lc;
+wsfont_getflg(int cookie, int *flg, int *lc)
{
struct font *ent;
int s;
@@ -614,8 +602,7 @@ wsfont_getflg(cookie, flg, lc)
* Unlock a given font and return new lockcount.
*/
int
-wsfont_unlock(cookie)
- int cookie;
+wsfont_unlock(int cookie)
{
struct font *ent;
int s, lc;
@@ -752,7 +739,6 @@ static struct wsfont_level2_glyphmap *ib
NULL, &ibm437_level2_37
};
-
/*
* ISO-8859-7 maps
*/
@@ -802,7 +788,6 @@ static struct wsfont_level2_glyphmap *is
&iso7_level2_32
};
-
static struct wsfont_level1_glyphmap encodings[] = {
{ NULL, 0, 0 }, /* WSDISPLAY_FONTENC_ISO */
{ ibm437_level1, 0, 38 }, /* WSDISPLAY_FONTENC_IBM */
@@ -818,9 +803,7 @@ static struct wsfont_level1_glyphmap enc
* Remap Unicode character to glyph
*/
int
-wsfont_map_unichar(font, c)
- struct wsdisplay_font *font;
- int c;
+wsfont_map_unichar(struct wsdisplay_font *font, int c)
{
if (font->encoding == WSDISPLAY_FONTENC_ISO)
return c;