summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-03-16 18:51:53 -0300
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-28 04:15:24 -0200
commit98b7afc0d1d53a766ea60175e9fc5f031051f057 (patch)
tree295f706057022a9449ed39ca4f29bea267a71445
parentf4db3aa38240038496d99b1368f5b6fb412f53a9 (diff)
Compile warning fixes.
Ansify some functions in LED.c and utils.c.
-rw-r--r--LED.c6
-rw-r--r--utils.c39
2 files changed, 13 insertions, 32 deletions
diff --git a/LED.c b/LED.c
index abfc0ba..2856329 100644
--- a/LED.c
+++ b/LED.c
@@ -192,10 +192,8 @@ GetPixmaps(LEDWidget lw)
}
/* ARGSUSED */
-static void Initialize(request, new, args, num_args)
- Widget request, new;
- ArgList args;
- Cardinal *num_args;
+static void
+Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args)
{
LEDWidget lw = (LEDWidget) new;
diff --git a/utils.c b/utils.c
index 193fab6..1c2d552 100644
--- a/utils.c
+++ b/utils.c
@@ -34,8 +34,7 @@
/***====================================================================***/
Opaque
-uAlloc(size)
- unsigned size;
+uAlloc(unsigned size)
{
return((Opaque)malloc(size));
}
@@ -43,9 +42,7 @@ uAlloc(size)
/***====================================================================***/
Opaque
-uCalloc(n,size)
- unsigned n;
- unsigned size;
+uCalloc(unsigned n, unsigned size)
{
return((Opaque)calloc(n,size));
}
@@ -53,9 +50,7 @@ uCalloc(n,size)
/***====================================================================***/
Opaque
-uRealloc(old,newSize)
- Opaque old;
- unsigned newSize;
+uRealloc(Opaque old, unsigned newSize)
{
if (old==NULL)
return((Opaque)malloc(newSize));
@@ -65,11 +60,7 @@ uRealloc(old,newSize)
/***====================================================================***/
Opaque
-uRecalloc(old,nOld,nNew,itemSize)
- Opaque old;
- unsigned nOld;
- unsigned nNew;
- unsigned itemSize;
+uRecalloc(Opaque old, unsigned nOld, unsigned nNew, unsigned itemSize)
{
char *rtrn;
@@ -87,8 +78,7 @@ char *rtrn;
/***====================================================================***/
void
-uFree(ptr)
- Opaque ptr;
+uFree(Opaque ptr)
{
if (ptr!=(Opaque)NULL)
free((char *)ptr);
@@ -103,8 +93,7 @@ static FILE *entryFile= NULL;
int uEntryLevel;
Boolean
-uSetEntryFile(name)
- char *name;
+uSetEntryFile(char *name)
{
if ((entryFile!=NULL)&&(entryFile!=stderr)) {
fprintf(entryFile,"switching to %s\n",name?name:"stderr");
@@ -136,9 +125,7 @@ va_list ap;
}
void
-uExit(l,rtVal)
- int l;
- char * rtVal;
+uExit(int l, char *rtVal)
{
int i;
@@ -160,8 +147,7 @@ int i;
int uDebugIndentSize= 4;
Boolean
-uSetDebugFile(name)
- char *name;
+uSetDebugFile(char *name)
{
if ((uDebugFile!=NULL)&&(uDebugFile!=stderr)) {
fprintf(uDebugFile,"switching to %s\n",name?name:"stderr");
@@ -317,8 +303,7 @@ uInternalError(char *s,...)
#ifndef HAVE_STRDUP
char *
-uStringDup(str)
- char *str;
+uStringDup(char *str)
{
char *rtrn;
@@ -332,8 +317,7 @@ char *rtrn;
#ifndef HAVE_STRCASECMP
int
-uStrCaseCmp(str1, str2)
- char *str1, *str2;
+uStrCaseCmp(char *str1, char *str2)
{
char buf1[512],buf2[512];
char c, *s;
@@ -359,8 +343,7 @@ uStrCaseCmp(str1, str2)
}
int
-uStrCasePrefix(prefix, str)
- char *prefix, *str;
+uStrCasePrefix(char *prefix, char *str)
{
char c1;
char c2;