Ver código fonte

removed duplicate include and redundant parentheses

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@36823 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 16 anos atrás
pai
commit
92fc51b2c6
2 arquivos alterados com 2 adições e 3 exclusões
  1. 2 2
      raster/r.topidx/file_io.c
  2. 0 1
      raster/r.topidx/main.c

+ 2 - 2
raster/r.topidx/file_io.c

@@ -28,8 +28,8 @@ void getcells(void)
     atb = (DCELL **) G_malloc(sizeof(DCELL *) * window.rows);
     a = (DCELL **) G_malloc(sizeof(DCELL *) * window.rows);
 
-    if ((window.ew_res < inhead.ew_res) || (window.ns_res < inhead.ns_res))
-        G_fatal_error(_("Current region resolution [%.2fx%.2f] lower than input map resolution [%.2fx%.2f]! Needs to be at least identical or the current region resolution lower than the input map resolution"),window.ew_res, window.ns_res, inhead.ew_res, inhead.ns_res);
+    if (window.ew_res < inhead.ew_res || window.ns_res < inhead.ns_res)
+        G_fatal_error(_("Current region resolution [%.2fx%.2f] lower than input map resolution [%.2fx%.2f]! Needs to be at least identical or the current region resolution lower than the input map resolution"), window.ew_res, window.ns_res, inhead.ew_res, inhead.ns_res);
 
     G_important_message(_("Reading elevation map..."));
 

+ 0 - 1
raster/r.topidx/main.c

@@ -18,7 +18,6 @@
  *
  *****************************************************************************/
 
-#include <grass/gis.h>
 #include <grass/glocale.h>
 #include "global.h"