aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-10-16 16:09:47 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2009-10-16 16:09:47 +0300
commit8956cfef277d217e4cdcf8450fe5ed865f50ee36 (patch)
tree1ce636efd10284c8d55c3b459291f92e9c170b0a
parent7891c97a6aa46d47d0a93fac63cada4a3cf89121 (diff)
downloadpies-8956cfef277d217e4cdcf8450fe5ed865f50ee36.tar.gz
pies-8956cfef277d217e4cdcf8450fe5ed865f50ee36.tar.bz2
Bugfixes.
* src/acl.c (acl_hasher): Fix signature. * src/progman.c (notify): Fix warnings.
-rw-r--r--src/acl.c2
-rw-r--r--src/progman.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/acl.c b/src/acl.c
index c78dc61..c82447c 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -637,7 +637,7 @@ static Hash_table *acl_table;
/* Calculate the hash of a string. */
static size_t
-acl_hasher (void const *data, unsigned n_buckets)
+acl_hasher (void const *data, size_t n_buckets)
{
const struct pies_acl *p = data;
return hash_string (p->name, n_buckets);
diff --git a/src/progman.c b/src/progman.c
index 411fc8c..5085f16 100644
--- a/src/progman.c
+++ b/src/progman.c
@@ -1519,12 +1519,12 @@ notify (const char *tag, int status, struct action *act)
mdef[COMPONENT_IDX].value = (char*) tag;
if (WIFEXITED (status))
{
- mdef[TERMINATION_IDX].value = _("exited with code");
+ mdef[TERMINATION_IDX].value = (char*) _("exited with code");
mdef[RETCODE_IDX].value = umaxtostr (WEXITSTATUS (status), buf);
}
else if (WIFSIGNALED (status))
{
- mdef[TERMINATION_IDX].value = _("terminated on signal");
+ mdef[TERMINATION_IDX].value = (char*) _("terminated on signal");
mdef[RETCODE_IDX].value = umaxtostr (WTERMSIG (status), buf);
}
else

Return to:

Send suggestions and report system problems to the System administrator.