Minor fixes: comments, license .. 59/184659/1
authorHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 20 Jul 2018 01:57:16 +0000 (10:57 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Fri, 20 Jul 2018 01:58:35 +0000 (01:58 +0000)
Change-Id: I09d102eae0b5990057c0492f52d5155243deff24
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit 5c437ddef63be7a6aa22966f7da70b3380441294)

LICENSE.Apache-2.0 [moved from LICENSE with 100% similarity]
packaging/libstorage.spec
src/storage.c

similarity index 100%
rename from LICENSE
rename to LICENSE.Apache-2.0
index 57611e7..f050da4 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libstorage
 Summary:    Library to get storage information
-Version:    0.1.1
+Version:    1.0.0
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
@@ -26,7 +26,6 @@ Requires:     %{name} = %{version}-%{release}
 %description devel
 Library to get storage information (devel)
 
-
 %prep
 %setup -q
 cp %{SOURCE1} .
@@ -45,7 +44,7 @@ make %{?jobs:-j%jobs}
 %files
 %{_libdir}/*.so.*
 %{_sysconfdir}/storage/libstorage.conf
-%license LICENSE
+%license LICENSE.Apache-2.0
 %manifest %{name}.manifest
 
 %files devel
index 93bb85c..4197ec4 100644 (file)
@@ -124,8 +124,8 @@ API int storage_get_root_directory(int storage_id, char **path)
                if (st->storage_id != storage_id)
                        continue;
                if (!user) {
-                       _E("Only Tizen applications and user session daemons can use\
-                               storage_get_root_directory(INTERNAL_STORAGE_ID, ...)");
+                       _E("Only apps and user session daemons are allowed "
+                                       "to use storage_get_root_directory(INTERNAL_STORAGE_ID, ...)");
                        return STORAGE_ERROR_INVALID_PARAMETER;
                }
 
@@ -194,8 +194,9 @@ API int storage_get_directory(int storage_id, storage_directory_e type, char **p
 
        if (found && st) {
                if (!user) {
-                       _E("Only Tizen applications and user session daemons can use\
-                               storage_get_directory(INTERNAL_STORAGE_ID, ...)");
+                       _E("Only apps and user session daemons are allowed "
+                                       "to use storage_get_root_directory(INTERNAL_STORAGE_ID, ...)");
+
                        return STORAGE_ERROR_INVALID_PARAMETER;
                }