diff options
-rw-r--r-- | android/help.c | 3 | ||||
-rw-r--r-- | android/help.h | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/android/help.c b/android/help.c index 23a94dd..3527c34 100644 --- a/android/help.c +++ b/android/help.c @@ -5,7 +5,6 @@ #include "android/utils/debug.h" #include "android/utils/misc.h" #include "android/skin/keyset.h" -#include "android/boot-properties.h" #include "android/android.h" #include <stdint.h> #include "audio/audio.h" @@ -1337,7 +1336,7 @@ help_prop(stralloc_t *out) " use '-prop <name>=<value>' to set a boot-time system property.\n" " <name> must be a property name of at most %d characters, without any\n" " space in it, and <value> must be a string of at most %d characters.\n\n", - PROPERTY_MAX_NAME, PROPERTY_MAX_VALUE ); + BOOT_PROPERTY_MAX_NAME, BOOT_PROPERTY_MAX_VALUE ); PRINTF( " the corresponding system property will be set at boot time in the\n" diff --git a/android/help.h b/android/help.h index 94feca1..ee15941 100644 --- a/android/help.h +++ b/android/help.h @@ -14,6 +14,14 @@ #include "android/utils/stralloc.h" +/* these values give the maximum length of system property + * names and values. They must match the definitions for PROPERTY_MAX_NAME and + * PROPERTY_MAX_VALUE in the Android source tree + * (in system/core/include/cutils/properties.h) + */ +#define BOOT_PROPERTY_MAX_NAME 32 +#define BOOT_PROPERTY_MAX_VALUE 92 + /* appends the list of options with a small description to a dynamic string */ extern void android_help_list_options( stralloc_t* out ); |