summaryrefslogtreecommitdiffstats
path: root/legacy_property_service.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy_property_service.cpp (renamed from legacy_property_service.c)8
1 files changed, 6 insertions, 2 deletions
diff --git a/legacy_property_service.c b/legacy_property_service.cpp
index 490a24524..90a0d47df 100644
--- a/legacy_property_service.c
+++ b/legacy_property_service.cpp
@@ -36,6 +36,10 @@
//#include <sys/atomics.h>
#include "legacy_property_service.h"
+#ifndef INT32_MAX
+#define INT32_MAX (2147483647)
+#endif
+
static int persistent_properties_loaded = 0;
static int property_area_inited = 0;
@@ -108,9 +112,9 @@ static int init_property_area(void)
fcntl(pa_workspace.fd, F_SETFD, FD_CLOEXEC);
- pa_info_array = (void*) (((char*) pa_workspace.data) + PA_INFO_START);
+ pa_info_array = (prop_info*) (((char*) pa_workspace.data) + PA_INFO_START);
- pa = pa_workspace.data;
+ pa = (prop_area*)(pa_workspace.data);
memset(pa, 0, PA_SIZE);
pa->magic = PROP_AREA_MAGIC;
pa->version = PROP_AREA_VERSION;