patch 7.4.1209
Problem: Can't build with Athena.
Solution: Fix function declarations.
diff --git a/src/gui_at_sb.c b/src/gui_at_sb.c
index 98caad5..189647a 100644
--- a/src/gui_at_sb.c
+++ b/src/gui_at_sb.c
@@ -234,7 +234,8 @@
static void
FillArea(
ScrollbarWidget sbw,
- Position top, bottom,
+ Position top,
+ Position bottom,
int fill,
int draw_shadow)
{
@@ -641,7 +642,7 @@
static Boolean
-CompareEvents(XEvent *oldEvent, *newEvent)
+CompareEvents(XEvent *oldEvent, XEvent *newEvent)
{
#define Check(field) if (newEvent->field != oldEvent->field) return False;
@@ -713,7 +714,8 @@
static void
ExtractPosition(
XEvent *event,
- Position *x, *y, /* RETURN */
+ Position *x, /* RETURN */
+ Position *y, /* RETURN */
unsigned int *state) /* RETURN */
{
switch (event->type)
@@ -816,7 +818,7 @@
* Same as above, but for floating numbers.
*/
static float
-FloatInRange(float num, small, big)
+FloatInRange(float num, float small, float big)
{
return (num < small) ? small : ((num > big) ? big : num);
}
@@ -984,7 +986,7 @@
}
static float
-FractionLoc(ScrollbarWidget sbw, int x, y)
+FractionLoc(ScrollbarWidget sbw, int x, int y)
{
int margin;
float height, width;
@@ -1165,7 +1167,7 @@
* Set the scroll bar to the given location.
*/
void
-vim_XawScrollbarSetThumb(Widget w, double top, shown, max)
+vim_XawScrollbarSetThumb(Widget w, double top, double shown, double max)
{
ScrollbarWidget sbw = (ScrollbarWidget) w;