|
From: <cro...@li...> - 2005-03-24 22:35:34
|
Module Name: crossfire
Committed By: cavesomething
Date: Thu Mar 24 22:35:26 UTC 2005
Modified Files:
crossfire/common: region.c
Log Message:
minor fix to remove compile error on old compilers
Start of context diffs
Index: crossfire/common/region.c
diff -c crossfire/common/region.c:1.2 crossfire/common/region.c:1.3
*** crossfire/common/region.c:1.2 Wed Mar 23 13:34:30 2005
--- crossfire/common/region.c Thu Mar 24 14:35:26 2005
***************
*** 1,6 ****
/*
* static char *rcsid_map_c =
! * "$Id: region.c,v 1.2 2005/03/23 21:34:30 cavesomething Exp $";
*/
/*
--- 1,6 ----
/*
* static char *rcsid_map_c =
! * "$Id: region.c,v 1.3 2005/03/24 22:35:26 cavesomething Exp $";
*/
/*
***************
*** 93,105 ****
region *get_region_from_string(char *name) {
region *reg;
char *substr;
sint16 i;
if (name==NULL) {
for (reg=first_region;reg->parent!=NULL;reg=reg->parent);
return reg;
}
! char *p = strchr(name, '\n');
if (p) *p = '\0';
for (reg=first_region;reg!=NULL;reg=reg->next)
if (!strcasecmp(reg->name, name)) return reg;
--- 93,106 ----
region *get_region_from_string(char *name) {
region *reg;
char *substr;
+ char *p;
sint16 i;
if (name==NULL) {
for (reg=first_region;reg->parent!=NULL;reg=reg->parent);
return reg;
}
! p = strchr(name, '\n');
if (p) *p = '\0';
for (reg=first_region;reg!=NULL;reg=reg->next)
if (!strcasecmp(reg->name, name)) return reg;
|