From afdcf1fa158e9833c163068f77e88d21ba0e3225 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 14 Dec 2007 20:09:53 +0000 Subject: udev requires try function and the modules-update program should take care of any 2.4 vs 2.6 kernel issues. Also add vim instructions to a few files. --- src/rc-update.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/rc-update.c b/src/rc-update.c index 38d48e03..e39db593 100644 --- a/src/rc-update.c +++ b/src/rc-update.c @@ -53,9 +53,9 @@ static char *applet = NULL; * 0 = no changes (nothing to do) * 1+ = number of runlevels updated */ -static ssize_t add (const char *runlevel, const char *service) +static int add (const char *runlevel, const char *service) { - ssize_t retval = -1; + int retval = -1; if (! rc_service_exists (service)) eerror ("%s: service `%s' does not exist", applet, service); @@ -73,9 +73,9 @@ static ssize_t add (const char *runlevel, const char *service) return (retval); } -static ssize_t delete (const char *runlevel, const char *service) +static int delete (const char *runlevel, const char *service) { - ssize_t retval = -1; + int retval = -1; errno = 0; if (rc_service_delete (runlevel, service)) { @@ -235,9 +235,9 @@ int rc_update (int argc, char **argv) if (! service) eerror ("%s: no service specified", applet); else { - ssize_t num_updated = 0; - ssize_t (*actfunc)(const char *, const char *); - size_t ret; + int num_updated = 0; + int (*actfunc)(const char *, const char *); + int ret; if (action & DOADD) { actfunc = add; -- cgit v1.2.3