summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-07-23 18:08:09 -0300
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-07-23 18:08:09 -0300
commit89416252097c97833c879dc2be56d2b6cd6a8f88 (patch)
tree5cce1cc722dd5615182b0d945b09c26e08b3bb73
parent43cb3d388eae5a814ac4f36edca5780a6ea4934f (diff)
Minor set of trivial corrections.
Ansify two non ansified functions definitions. Don't declare a variable that is not used. Actually declare the prototype a function that is defined unconditionally.
-rw-r--r--src/OS.c2
-rw-r--r--src/PrintShell.c1
-rw-r--r--src/XawI18n.h2
-rw-r--r--src/XawIm.c3
4 files changed, 3 insertions, 5 deletions
diff --git a/src/OS.c b/src/OS.c
index ec80e63..5801aeb 100644
--- a/src/OS.c
+++ b/src/OS.c
@@ -29,7 +29,7 @@
#endif
int
-_XawGetPageSize()
+_XawGetPageSize(void)
{
static int pagesize = -1;
diff --git a/src/PrintShell.c b/src/PrintShell.c
index 26cb86d..5af3461 100644
--- a/src/PrintShell.c
+++ b/src/PrintShell.c
@@ -739,7 +739,6 @@ XawAttributesNotify(Widget w,
XEvent *evp,
Boolean *cont)
{
- XawPrintShellWidget print_shell = (XawPrintShellWidget)w;
XPAttributeEvent *xpevp = (XPAttributeEvent *)evp;
XawUpdateResources(w, xpevp->context);
diff --git a/src/XawI18n.h b/src/XawI18n.h
index 45cb9a5..8f157d1 100644
--- a/src/XawI18n.h
+++ b/src/XawI18n.h
@@ -115,8 +115,8 @@ wchar_t _Xaw_atowc
#if !defined(iswalnum) && !defined(HAVE_ISWALNUM)
#define iswalnum(c) _Xaw_iswalnum(c)
+#endif
int _Xaw_iswalnum
(
wchar_t c
);
-#endif
diff --git a/src/XawIm.c b/src/XawIm.c
index 24b647d..24a6078 100644
--- a/src/XawIm.c
+++ b/src/XawIm.c
@@ -180,8 +180,7 @@ static XtResource resources[] =
#undef Offset
-static VendorShellWidget SearchVendorShell( w )
- Widget w;
+static VendorShellWidget SearchVendorShell(Widget w)
{
while(w && !XtIsShell(w)) w = XtParent(w);
if (w && XtIsVendorShell(w)) return((VendorShellWidget)w);