diff options
author | Nick Kralevich <nnk@google.com> | 2013-05-24 21:36:22 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-05-24 21:36:22 +0000 |
commit | 1c743de2bd39750e107f98012afa9c3182226942 (patch) | |
tree | 85252ccb523d1913016bd88ffceec9ebd0a721e5 /include/cutils | |
parent | 90900689e653a63bbe6651c1fbba544790e47cee (diff) | |
parent | 53df3ade9bacce57099bb9eeb2a34bb5945d463e (diff) | |
download | system_core-1c743de2bd39750e107f98012afa9c3182226942.zip system_core-1c743de2bd39750e107f98012afa9c3182226942.tar.gz system_core-1c743de2bd39750e107f98012afa9c3182226942.tar.bz2 |
Merge "properties.h: avoid duplicating constant values"
Diffstat (limited to 'include/cutils')
-rw-r--r-- | include/cutils/properties.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/cutils/properties.h b/include/cutils/properties.h index 25fd67a..7e4ed93 100644 --- a/include/cutils/properties.h +++ b/include/cutils/properties.h @@ -17,6 +17,8 @@ #ifndef __CUTILS_PROPERTIES_H #define __CUTILS_PROPERTIES_H +#include <sys/system_properties.h> + #ifdef __cplusplus extern "C" { #endif @@ -28,8 +30,8 @@ extern "C" { ** WARNING: system/bionic/include/sys/system_properties.h also defines ** these, but with different names. (TODO: fix that) */ -#define PROPERTY_KEY_MAX 32 -#define PROPERTY_VALUE_MAX 92 +#define PROPERTY_KEY_MAX PROP_NAME_MAX +#define PROPERTY_VALUE_MAX PROP_VALUE_MAX /* property_get: returns the length of the value which will never be ** greater than PROPERTY_VALUE_MAX - 1 and will always be zero terminated. |