Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Vasudeo Desai committed Oct 24, 2024
1 parent 1559dbf commit 5b92dc2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/vector/Vlib/copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ int Vect_copy_map_lines_field(struct Map_info *In, int field,
struct Map_info *Out)
{
int ret, format, topo;
char *geometry_type = NULL;
char *map_name = NULL;
const char *geometry_type = NULL;
const char *map_name = NULL;

if (Vect_level(In) < 1)
G_fatal_error(
Expand Down Expand Up @@ -168,7 +168,7 @@ int Vect_copy_map_lines_field(struct Map_info *In, int field,
int copy_lines_1(struct Map_info *In, int field, struct Map_info *Out)
{
int ret, type;
char *map_name = NULL;
const char *map_name = NULL;

struct line_pnts *Points;
struct line_cats *Cats;
Expand Down Expand Up @@ -228,7 +228,7 @@ int copy_lines_2(struct Map_info *In, int field, int topo, struct Map_info *Out)
struct line_cats *Cats, *CCats;

const char *ftype = NULL;
char *map_name = NULL;
const char *map_name = NULL;

Points = Vect_new_line_struct();
CPoints = Vect_new_line_struct();
Expand Down Expand Up @@ -389,7 +389,7 @@ int copy_lines_2(struct Map_info *In, int field, int topo, struct Map_info *Out)
Vect_destroy_line_struct(NPoints);
Vect_destroy_cats_struct(Cats);
Vect_destroy_cats_struct(CCats);
Vect_close(ftype);
G_free(ftype);

return ret;
}
Expand Down Expand Up @@ -632,7 +632,7 @@ int Vect_copy_tables(struct Map_info *In, struct Map_info *Out, int field)
{
int i, n, type;
struct field_info *Fi;
char *map_name = NULL;
const char *map_name = NULL;

n = Vect_get_num_dblinks(In);

Expand Down

0 comments on commit 5b92dc2

Please sign in to comment.