forked from github/server
compile fixes
This commit is contained in:
parent
2e09d16588
commit
04029eef36
2 changed files with 2 additions and 16 deletions
|
@ -1008,22 +1008,6 @@ cr_reportspell(FILE * F, spell *sp, const struct locale * lang)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int
|
|
||||||
encode_region(const faction * f, const region * r) {
|
|
||||||
unsigned int id;
|
|
||||||
char *cp, c;
|
|
||||||
/* obfuscation */
|
|
||||||
assert(sizeof(int)==sizeof(char)*4);
|
|
||||||
id = (((((r->x ^ f->no) % 1024) << 20) | ((r->y ^ f->no) % 1024)));
|
|
||||||
cp = (char*)&id;
|
|
||||||
c = cp[0];
|
|
||||||
cp[0] = cp[2];
|
|
||||||
cp[2] = cp[1];
|
|
||||||
cp[1] = cp[3];
|
|
||||||
cp[3] = c;
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
cr_output_resource(char * buf, const char * name, const struct locale * loc, int amount, int level)
|
cr_output_resource(char * buf, const char * name, const struct locale * loc, int amount, int level)
|
||||||
{
|
{
|
||||||
|
|
|
@ -84,6 +84,7 @@ typedef struct xml_context {
|
||||||
xmlNsPtr ns_xml;
|
xmlNsPtr ns_xml;
|
||||||
} xml_context;
|
} xml_context;
|
||||||
|
|
||||||
|
#if 0
|
||||||
static const xmlChar *
|
static const xmlChar *
|
||||||
xml_s(const char * str)
|
xml_s(const char * str)
|
||||||
{
|
{
|
||||||
|
@ -97,6 +98,7 @@ xml_s(const char * str)
|
||||||
buffer[outbytes] = 0;
|
buffer[outbytes] = 0;
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static const xmlChar *
|
static const xmlChar *
|
||||||
xml_i(double number)
|
xml_i(double number)
|
||||||
|
|
Loading…
Reference in a new issue