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 *
|
||||
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;
|
||||
} xml_context;
|
||||
|
||||
#if 0
|
||||
static const xmlChar *
|
||||
xml_s(const char * str)
|
||||
{
|
||||
|
@ -97,6 +98,7 @@ xml_s(const char * str)
|
|||
buffer[outbytes] = 0;
|
||||
return buffer;
|
||||
}
|
||||
#endif
|
||||
|
||||
static const xmlChar *
|
||||
xml_i(double number)
|
||||
|
|
Loading…
Reference in a new issue