summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2016-03-28 08:08:48 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2016-03-28 08:08:48 +0900
commitdccef2386dd1c909ec8ac55e886cbccf2f9c7fb3 (patch)
treef561e8e03b9feb35dc25bffe1a6e51b9904b9106
parent5d41bd2425db68a2bf733a5a00b2a82427c381f3 (diff)
downloadmime-type-dccef2386dd1c909ec8ac55e886cbccf2f9c7fb3.tar.gz
mime-type-dccef2386dd1c909ec8ac55e886cbccf2f9c7fb3.tar.bz2
mime-type-dccef2386dd1c909ec8ac55e886cbccf2f9c7fb3.zip
Adjust coding rules
Change-Id: Icd9b141f1310b1d92960fd385fe9fe57c1bf36d3 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rwxr-xr-xdoc/content_mime_type_doc.h2
-rwxr-xr-xinclude/mime_type.h7
-rwxr-xr-xsrc/mime_type.c6
3 files changed, 5 insertions, 10 deletions
diff --git a/doc/content_mime_type_doc.h b/doc/content_mime_type_doc.h
index f4c02fc..f2b5a23 100755
--- a/doc/content_mime_type_doc.h
+++ b/doc/content_mime_type_doc.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
diff --git a/include/mime_type.h b/include/mime_type.h
index a1f4328..5e8c787 100755
--- a/include/mime_type.h
+++ b/include/mime_type.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
@@ -11,7 +11,7 @@
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
- * limitations under the License.
+ * limitations under the License.
*/
#ifndef __TIZEN_CONTENT_MIME_TYPE_H__
@@ -33,8 +33,7 @@ extern "C"
/**
* @brief Enumeration of error code
*/
-typedef enum
-{
+typedef enum {
MIME_TYPE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
MIME_TYPE_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
MIME_TYPE_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
diff --git a/src/mime_type.c b/src/mime_type.c
index 53c4a9c..7ab5716 100755
--- a/src/mime_type.c
+++ b/src/mime_type.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
@@ -36,16 +36,12 @@ static const char* mime_type_error_to_string(mime_type_error_e error)
switch (error) {
case MIME_TYPE_ERROR_NONE:
return "NONE";
-
case MIME_TYPE_ERROR_INVALID_PARAMETER:
return "INVALID_PARAMETER";
-
case MIME_TYPE_ERROR_OUT_OF_MEMORY:
return "OUT_OF_MEMORY";
-
case MIME_TYPE_ERROR_IO_ERROR:
return "IO_ERROR";
-
default:
return "UNKNOWN";
}