summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2012-02-12 02:23:04 +0100
committerChristian Ruppert <idl0r@gentoo.org>2012-02-12 02:23:04 +0100
commitd9dc5dc42314368a65579967c02af4945cb8c312 (patch)
tree4d7360f71deccb86b5e31372fd632b9128a7725b /src
parent8c55f1e50da45286b35d611c3c3a823e3446c2b8 (diff)
downloadopenrc-d9dc5dc42314368a65579967c02af4945cb8c312.tar.gz
openrc-d9dc5dc42314368a65579967c02af4945cb8c312.tar.bz2
openrc-d9dc5dc42314368a65579967c02af4945cb8c312.tar.xz
Use size_t instead of int
Diffstat (limited to 'src')
-rw-r--r--src/rc/rc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c
index 612cad0..77d2c6d 100644
--- a/src/rc/rc.c
+++ b/src/rc/rc.c
@@ -333,11 +333,11 @@ set_krunlevel(const char *level)
return true;
}
-static int
+static size_t
get_krunlevel(char *buffer, int buffer_len)
{
FILE *fp;
- int i = 0;
+ size_t i = 0;
if (!exists(RC_KRUNLEVEL))
return 0;