Minor fixes: comments, license .. 57/184657/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:57:27 +0000 (10:57 +0900)
Change-Id: I09d102eae0b5990057c0492f52d5155243deff24
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
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 b0d6465..5272b57 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;
                }