diff options
author | Roy Marples <roy@marples.name> | 2007-12-14 20:09:53 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-12-14 20:09:53 +0000 |
commit | afdcf1fa158e9833c163068f77e88d21ba0e3225 (patch) | |
tree | c170f21fb6be2dc278e2554c4ae7595f1738d1a4 /src | |
parent | 584cea1f8e0d2aa21f75c273159608d9ee35cda5 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/rc-update.c | 14 |
1 files changed, 7 insertions, 7 deletions
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; |