Explorar o código

Convert K&R-style functions to ANSI C

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55463 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements %!s(int64=12) %!d(string=hai) anos
pai
achega
aeb54f44af
Modificáronse 1 ficheiros con 2 adicións e 9 borrados
  1. 2 9
      lib/raster3d/volume.c

+ 2 - 9
lib/raster3d/volume.c

@@ -8,11 +8,7 @@
 
 
 /*---------------------------------------------------------------------------*/
 /*---------------------------------------------------------------------------*/
 
 
-static int verifyVolumeVertices(map, v)
-
-     void *map;
-     double v[2][2][2][3];
-
+static int verifyVolumeVertices(void *map, double v[2][2][2][3])
 {
 {
     if (!(Rast3d_is_valid_location(map, v[0][0][0][0], v[0][0][0][1],
     if (!(Rast3d_is_valid_location(map, v[0][0][0][0], v[0][0][0][1],
 			      v[0][0][0][2]) &&
 			      v[0][0][0][2]) &&
@@ -37,10 +33,7 @@ static int verifyVolumeVertices(map, v)
 
 
 /*---------------------------------------------------------------------------*/
 /*---------------------------------------------------------------------------*/
 
 
-static int verifyVolumeEdges(nx, ny, nz)
-
-     int nx, ny, nz;
-
+static int verifyVolumeEdges(int nx, int ny, int nz)
 {
 {
     if ((nx <= 0) || (ny <= 0) || (nz <= 0))
     if ((nx <= 0) || (ny <= 0) || (nz <= 0))
 	Rast3d_fatal_error("verifyCubeEdges: Volume edge out of range");
 	Rast3d_fatal_error("verifyCubeEdges: Volume edge out of range");