Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:darix
runit
compile_warnings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File compile_warnings.patch of Package runit
Only in admin/runit-2.1.1: command Only in admin/runit-2.1.1: compile diff -ur admin.orig/runit-2.1.1/src/chkshsgr.c admin/runit-2.1.1/src/chkshsgr.c --- admin.orig/runit-2.1.1/src/chkshsgr.c 2010-08-03 13:42:16.856848905 -0500 +++ admin/runit-2.1.1/src/chkshsgr.c 2010-08-03 13:52:19.618554150 -0500 @@ -1,12 +1,15 @@ /* Public domain. */ - +#include <sys/types.h> #include <unistd.h> +#include <grp.h> int main() { - short x[4]; + gid_t x[4]; x[0] = x[1] = 0; - if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); + if (getgroups(1,x) == 0) + if (setgroups(1,x) == -1) + _exit(1); _exit(0); } diff -ur admin.orig/runit-2.1.1/src/chpst.c admin/runit-2.1.1/src/chpst.c --- admin.orig/runit-2.1.1/src/chpst.c 2010-08-03 13:42:16.856848905 -0500 +++ admin/runit-2.1.1/src/chpst.c 2010-08-03 13:44:11.097043256 -0500 @@ -2,6 +2,9 @@ #include <time.h> #include <sys/time.h> #include <sys/resource.h> + +#include <grp.h> + #include <unistd.h> #include "sgetopt.h" #include "error.h" @@ -308,7 +311,8 @@ case 'n': switch (*optarg) { case '-': - if (optarg[scan_ulong(++optarg, &ul)]) usage(); nicelvl =ul; + ++optarg; + if (optarg[scan_ulong(optarg, &ul)]) usage(); nicelvl =ul; nicelvl *=-1; break; case '+': ++optarg; diff -ur admin.orig/runit-2.1.1/src/prot.c admin/runit-2.1.1/src/prot.c --- admin.orig/runit-2.1.1/src/prot.c 2010-08-03 13:42:16.862347593 -0500 +++ admin/runit-2.1.1/src/prot.c 2010-08-03 13:56:26.105061158 -0500 @@ -1,4 +1,7 @@ /* Public domain. */ +#include <sys/types.h> +#include <unistd.h> +#include <grp.h> #include "hasshsgr.h" #include "prot.h" diff -ur admin.orig/runit-2.1.1/src/seek_set.c admin/runit-2.1.1/src/seek_set.c --- admin.orig/runit-2.1.1/src/seek_set.c 2010-08-03 13:42:16.862347593 -0500 +++ admin/runit-2.1.1/src/seek_set.c 2010-08-03 13:48:42.861054663 -0500 @@ -1,6 +1,7 @@ /* Public domain. */ #include <sys/types.h> +#include <unistd.h> #include "seek.h" #define SET 0 /* sigh */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor