Quellcode durchsuchen

Vlib: avoid compiler warning

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56277 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz vor 12 Jahren
Ursprung
Commit
2cf206bf98
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      include/defs/vector.h
  2. 1 1
      lib/vector/Vlib/net.c

+ 1 - 1
include/defs/vector.h

@@ -389,7 +389,7 @@ int Vect_net_build_graph(struct Map_info *, int, int, int, const char *,
                          const char *, const char *, int, int);
 int Vect_net_shortest_path(struct Map_info *, int, int, struct ilist *,
                            double *);
-dglGraph_s *Vect_net_get_graph(const struct Map_info *);
+dglGraph_s *Vect_net_get_graph(struct Map_info *);
 int Vect_net_get_line_cost(const struct Map_info *, int, int, double *);
 int Vect_net_get_node_cost(const struct Map_info *, int, double *);
 int Vect_net_nearest_nodes(struct Map_info *, double, double, double, int,

+ 1 - 1
lib/vector/Vlib/net.c

@@ -570,7 +570,7 @@ Vect_net_shortest_path(struct Map_info *Map, int from, int to,
 
   \return pointer to dglGraph_s struct or NULL
 */
-dglGraph_s *Vect_net_get_graph(const struct Map_info *Map)
+dglGraph_s *Vect_net_get_graph(struct Map_info *Map)
 {
     return &(Map->dgraph.graph_s);
 }