summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2009-03-11 11:50:07 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2009-03-11 11:50:07 (GMT)
commit9e8cbcb5be43021aed18ffb92bbbb43379bdb6f2 (patch) (side-by-side diff)
tree937566bf5232d69c74981ed54d2b3f4194611217
parent43e8d1ad415cd8af7f56f0346097dd2882e23628 (diff)
downloadwydawca-9e8cbcb5be43021aed18ffb92bbbb43379bdb6f2.tar.gz
wydawca-9e8cbcb5be43021aed18ffb92bbbb43379bdb6f2.tar.bz2
Minor fixes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/config.c1
-rw-r--r--src/job.c2
-rw-r--r--src/userprivs.c7
-rw-r--r--src/wydawca.c2
4 files changed, 5 insertions, 7 deletions
diff --git a/src/config.c b/src/config.c
index 11ac92d..219544b 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1272,7 +1272,6 @@ cb_user (enum gconf_callback_command cmd,
gconf_value_t *value,
void *cb_data)
{
- int rc;
struct passwd *pw;
if (assert_string_arg (locus, cmd, value))
diff --git a/src/job.c b/src/job.c
index 6d88add..38bd63f 100644
--- a/src/job.c
+++ b/src/job.c
@@ -333,8 +333,6 @@ job_queue_runner ()
if (job->state == STATE_QUEUED)
{
- time_t interval;
-
if (job->timestamp >= now)
{
if (job_start (job))
diff --git a/src/userprivs.c b/src/userprivs.c
index e6a18c8..e9a6a7c 100644
--- a/src/userprivs.c
+++ b/src/userprivs.c
@@ -20,7 +20,6 @@ int
wydawca_userprivs (uid_t uid, gid_t gid, gid_t *grplist, size_t ngrp)
{
int rc = 0;
- size_t size = 1, j = 1;
if (uid == 0)
return 0;
@@ -29,7 +28,8 @@ wydawca_userprivs (uid_t uid, gid_t gid, gid_t *grplist, size_t ngrp)
if (geteuid () == 0 && setgroups (ngrp, grplist))
{
logmsg (LOG_CRIT, "setgroups(%lu, %lu...): %s",
- ngrp, grplist[0], 0, strerror (errno));
+ (unsigned long)ngrp, (unsigned long)grplist[0],
+ strerror (errno));
return rc;
}
@@ -38,7 +38,8 @@ wydawca_userprivs (uid_t uid, gid_t gid, gid_t *grplist, size_t ngrp)
#if defined(HAVE_SETEGID)
if ((rc = setegid (gid)) < 0)
- logmsg (LOG_CRIT, "setegid(%lu): %s", gid, strerror (errno));
+ logmsg (LOG_CRIT, "setegid(%lu): %s",
+ (unsigned long) gid, strerror (errno));
#elif defined(HAVE_SETREGID)
if ((rc = setregid (gid, gid)) < 0)
logmsg (LOG_CRIT, "setregid(%lu,%lu)d: %s",
diff --git a/src/wydawca.c b/src/wydawca.c
index d210717..29d346f 100644
--- a/src/wydawca.c
+++ b/src/wydawca.c
@@ -242,7 +242,7 @@ gconf_print_diag (gconf_locus_t *locus, int err, int errcode, const char *msg)
static int uidc;
static uid_t *uidv;
-static int
+static void
collect_uids (int argc, char **argv)
{
int i;

Return to:

Send suggestions and report system problems to the System administrator.