From b4f92a1bf639cd710907ee79cb10198300e48b00 Mon Sep 17 00:00:00 2001 From: ByungWoo Lee Date: Fri, 20 May 2016 10:47:25 +0900 Subject: [PATCH] Remove build warnings Change-Id: I6ff3cc8b83b27039d3ea36f7881768b09e54dcd2 --- error_messages/key-manager.xml | 2 +- include/private/tizen_error_private.h | 6 +++--- include/tizen_error.h | 2 +- tool/make_msg_header.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/error_messages/key-manager.xml b/error_messages/key-manager.xml index 84d542a..8ea5be2 100644 --- a/error_messages/key-manager.xml +++ b/error_messages/key-manager.xml @@ -66,7 +66,7 @@ TIZEN_ERROR_KEY_MANAGER | 0x11 - Save key\/certificate\/pkcs12 failed because of file system error + Save key/certificate/pkcs12 failed because of file system error TIZEN_ERROR_KEY_MANAGER | 0xFF diff --git a/include/private/tizen_error_private.h b/include/private/tizen_error_private.h index d8e30f4..30a616b 100644 --- a/include/private/tizen_error_private.h +++ b/include/private/tizen_error_private.h @@ -27,8 +27,8 @@ extern "C" { typedef struct tizen_err_info { int value; - const char *name; - const char *msg; + char *name; + char *msg; } err_info; static err_info err_list[] = { @@ -276,7 +276,7 @@ static err_info err_list[] = { ERR_ENTRY("CKMC_ERROR_INVALID_FORMAT", TIZEN_ERROR_KEY_MANAGER | 0x0E, "A provided file or binary has not a valid format"), ERR_ENTRY("CKMC_ERROR_FILE_ACCESS_DENIED", TIZEN_ERROR_KEY_MANAGER | 0x0F, "A provided file doesn't exist or cannot be accessed in the file system"), ERR_ENTRY("CKMC_ERROR_NOT_EXPORTABLE", TIZEN_ERROR_KEY_MANAGER | 0x10, "The data is saved as unexportable so it cannot be leaked"), - ERR_ENTRY("CKMC_ERROR_FILE_SYSTEM", TIZEN_ERROR_KEY_MANAGER | 0x11, "Save key\/certificate\/pkcs12 failed because of file system error"), + ERR_ENTRY("CKMC_ERROR_FILE_SYSTEM", TIZEN_ERROR_KEY_MANAGER | 0x11, "Save key/certificate/pkcs12 failed because of file system error"), ERR_ENTRY("CKMC_ERROR_UNKNOWN", TIZEN_ERROR_KEY_MANAGER | 0xFF, "The error with unknown reason"), ERR_ENTRY("MEDIA_CONTENT_ERROR_DB_FAILED", TIZEN_ERROR_MEDIA_CONTENT | 0x01, "DB operation failed "), ERR_ENTRY("MEDIA_CONTENT_ERROR_DB_BUSY", TIZEN_ERROR_MEDIA_CONTENT | 0x02, "DB operation BUSY"), diff --git a/include/tizen_error.h b/include/tizen_error.h index 5813256..5f31c3c 100644 --- a/include/tizen_error.h +++ b/include/tizen_error.h @@ -43,7 +43,7 @@ extern "C" { /* Check if error or not */ #define TIZEN_ERROR_IS_ERROR(x) (!TIZEN_ERROR_IS_OK(x)) -/* Check if slp error or not */ +/* Check if tizen error or not */ #define TIZEN_ERROR_IS_PLATFORM_ERROR(x) (TIZEN_ERROR_MIN_PLATFORM_ERROR <= (x) && (x) < 0) /* Application Error Class */ diff --git a/tool/make_msg_header.py b/tool/make_msg_header.py index 3f10e03..13c58fa 100755 --- a/tool/make_msg_header.py +++ b/tool/make_msg_header.py @@ -21,8 +21,8 @@ fp.write( "#endif\n\n" ) fp.write( "#define ERR_ENTRY(name, value, msg) {value, name, msg}\n\n" ) fp.write( "typedef struct tizen_err_info {\n" ) fp.write( "\tint value;\n" ) -fp.write( "\tconst char *name;\n" ) -fp.write( "\tconst char *msg;\n" ) +fp.write( "\tchar *name;\n" ) +fp.write( "\tchar *msg;\n" ) fp.write( "} err_info;\n\n" ) fp.write( "static err_info err_list[] = {\n" ); -- 2.34.1