|
From: <sv...@va...> - 2006-01-22 01:09:44
|
Author: sewardj
Date: 2006-01-22 01:09:37 +0000 (Sun, 22 Jan 2006)
New Revision: 5580
Log:
Get rid of compiler warnings.
Modified:
trunk/massif/hp2ps/HpFile.c
trunk/massif/hp2ps/Main.c
trunk/massif/hp2ps/Main.h
trunk/massif/hp2ps/Shade.c
trunk/massif/hp2ps/Utilities.c
Modified: trunk/massif/hp2ps/HpFile.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/massif/hp2ps/HpFile.c 2006-01-22 01:08:40 UTC (rev 5579)
+++ trunk/massif/hp2ps/HpFile.c 2006-01-22 01:09:37 UTC (rev 5580)
@@ -446,8 +446,7 @@
static struct entry* hashtable[ N_HASH ];
=20
static intish
-Hash(s)
- char *s;
+Hash(char* s)
{
int r;
=20
@@ -466,7 +465,7 @@
*/
=20
static struct chunk*
-MakeChunk()
+MakeChunk(void)
{
struct chunk* ch;
struct datapoint* d;
Modified: trunk/massif/hp2ps/Main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/massif/hp2ps/Main.c 2006-01-22 01:08:40 UTC (rev 5579)
+++ trunk/massif/hp2ps/Main.c 2006-01-22 01:09:37 UTC (rev 5580)
@@ -66,9 +66,7 @@
floatish THRESHOLD_PERCENT =3D DEFAULT_THRESHOLD;
int TWENTY =3D DEFAULT_TWENTY;
=20
-int main(argc, argv)
-int argc;
-char* argv[];
+int main(int argc, char* argv[])
{
=20
programname =3D copystring(Basename(argv[0]));
Modified: trunk/massif/hp2ps/Main.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/massif/hp2ps/Main.h 2006-01-22 01:08:40 UTC (rev 5579)
+++ trunk/massif/hp2ps/Main.h 2006-01-22 01:09:37 UTC (rev 5580)
@@ -7,11 +7,11 @@
=20
//#include "config.h"
=20
-#ifdef __STDC__
+//#ifdef __STDC__
#define PROTO(x) x
-#else
-#define PROTO(x) ()
-#endif
+//#else
+//#define PROTO(x) ()
+//#endif
=20
/* our own ASSERT macro (for C) */
#ifndef DEBUG
Modified: trunk/massif/hp2ps/Shade.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/massif/hp2ps/Shade.c 2006-01-22 01:08:40 UTC (rev 5579)
+++ trunk/massif/hp2ps/Shade.c 2006-01-22 01:09:37 UTC (rev 5580)
@@ -108,9 +108,7 @@
}
=20
static floatish
-extract_colour(shade,factor)
- floatish shade;
- intish factor;
+extract_colour(floatish shade, intish factor)
{
intish i,j;
=20
Modified: trunk/massif/hp2ps/Utilities.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/massif/hp2ps/Utilities.c 2006-01-22 01:08:40 UTC (rev 5579)
+++ trunk/massif/hp2ps/Utilities.c 2006-01-22 01:09:37 UTC (rev 5580)
@@ -4,14 +4,14 @@
=20
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
#include "Main.h"
#include "Error.h"
+#include "Utilities.h"
=20
-extern void* malloc();
=20
char*
-Basename(name)
- char* name;
+Basename(char* name)
{
char* t;
=20
@@ -101,7 +101,6 @@
size_t n;
{
void *r;
- extern void *realloc();
=20
r =3D realloc(p, n);
if (!r) {
|