summaryrefslogtreecommitdiff
path: root/src/fcobjs.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2013-01-02 17:52:00 -0600
committerBehdad Esfahbod <behdad@behdad.org>2013-01-02 18:00:09 -0600
commit46ab96b8fa029fbc8ccf69a6f2fda89866e3ac9c (patch)
tree137ce207b036bbebe0102edbd8c64a2081e1216c /src/fcobjs.c
parent558b3c65f91b4b2dd65ce2242e1a21ace621e44b (diff)
Fix more warnings.
Linux build and mingw32 cross build warning-free now.
Diffstat (limited to 'src/fcobjs.c')
-rw-r--r--src/fcobjs.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/fcobjs.c b/src/fcobjs.c
index b3bb200..1aa4a77 100644
--- a/src/fcobjs.c
+++ b/src/fcobjs.c
@@ -24,15 +24,21 @@
#include "fcint.h"
+static unsigned int
+FcObjectTypeHash (register const char *str, register unsigned int len);
+
+static const struct FcObjectTypeInfo *
+FcObjectTypeLookup (register const char *str, register unsigned int len);
+
#include "fcobjshash.h"
#include <string.h>
-static int next_id = FC_MAX_BASE_OBJECT + 1;
+static fc_atomic_int_t next_id = FC_MAX_BASE_OBJECT + 1;
struct FcObjectOtherTypeInfo {
struct FcObjectOtherTypeInfo *next;
FcObjectType object;
- int id;
+ FcObject id;
} *other_types;
static FcObjectType *