Update to 4.01.
[profile/ivi/quota.git] / set_limits_example.c
index 755fb2f..99a1b21 100644 (file)
@@ -7,7 +7,7 @@
 
 #include "pot.h"
 
-int copy_user_quota_limits(const char *block_device, uid_t from, uid_t to)
+static int copy_user_quota_limits(const char *block_device, uid_t from, uid_t to)
 {
        struct dqblk dq;
 
@@ -30,7 +30,7 @@ int copy_user_quota_limits(const char *block_device, uid_t from, uid_t to)
        }
 }
 
-int copy_group_quota_limits(const char *block_device, gid_t from, gid_t to)
+tatic int copy_group_quota_limits(const char *block_device, gid_t from, gid_t to)
 {
        struct dqblk dq;
 
@@ -40,14 +40,14 @@ int copy_group_quota_limits(const char *block_device, gid_t from, gid_t to)
                }
                else {
                        errstr(
-                               _("copy_group_quota_limits: Failed to set groupquota for uid %ld : %s\n"),
+                               _("copy_group_quota_limits: Failed to set groupquota for gid %ld : %s\n"),
                                to, strerror(errno));
                        return (1);
                }
        }
        else {
                errstr(
-                       _("copy_group_quota_limits: Failed to get groupquota for uid %ld : %s\n"),
+                       _("copy_group_quota_limits: Failed to get groupquota for gid %ld : %s\n"),
                        from, strerror(errno));
                return (1);
        }