aboutsummaryrefslogtreecommitdiff
path: root/src/librc/librc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-22 10:29:15 +0000
committerRoy Marples <roy@marples.name>2008-01-22 10:29:15 +0000
commitb4bff9ce5efce83a7265a42d4372d367ca32f696 (patch)
tree5b15b4a0a8d270365e1032c969febbbe34be5a26 /src/librc/librc.c
parente5baa6ad378a6cf7ddc7689163adfd8719d9946f (diff)
Quiet some lint warnings.
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r--src/librc/librc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index 38961b75..7093ddab 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -309,7 +309,7 @@ char **rc_service_extra_commands (const char *service)
char *token;
char *p;
FILE *fp;
- int l;
+ size_t l;
if (! (svc = rc_service_resolve (service)))
return (NULL);
@@ -337,7 +337,7 @@ char *rc_service_description (const char *service, const char *option)
char *cmd;
char *desc = NULL;
FILE *fp;
- int i;
+ size_t l;
if (! (svc = rc_service_resolve (service)))
return (NULL);
@@ -345,9 +345,9 @@ char *rc_service_description (const char *service, const char *option)
if (! option)
option = "";
- i = strlen (DESCSTR) + strlen (svc) + strlen (option) + 2;
- cmd = xmalloc (sizeof (char) * i);
- snprintf (cmd, i, DESCSTR, svc, option ? "_" : "", option);
+ l = strlen (DESCSTR) + strlen (svc) + strlen (option) + 2;
+ cmd = xmalloc (sizeof (char) * l);
+ snprintf (cmd, l, DESCSTR, svc, option ? "_" : "", option);
free (svc);
if ((fp = popen (cmd, "r"))) {
desc = rc_getline (fp);