diff options
Diffstat (limited to '')
-rw-r--r-- | play.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/play.c b/play.c index ca3ac4f..e063dda 100644 --- a/play.c +++ b/play.c @@ -27,10 +27,6 @@ #include <time.h> #include <unistd.h> -#ifdef __FreeBSD__ -#include <sys/capsicum.h> -#endif - #define ARRAY_LEN(a) (sizeof(a) / sizeof((a)[0])) typedef unsigned uint; @@ -335,20 +331,6 @@ int main(int argc, char *argv[]) { if (error) err(EX_OSERR, "pledge"); #endif -#ifdef __FreeBSD__ - int error = cap_enter(); - if (error) err(EX_OSERR, "cap_enter"); - - cap_rights_t rights; - cap_rights_init(&rights, CAP_READ, CAP_WRITE, CAP_SEEK, CAP_FLOCK); - - error = cap_rights_limit(fileno(top), &rights); - if (error) err(EX_OSERR, "cap_rights_limit"); - - error = cap_rights_limit(fileno(weekly), &rights); - if (error) err(EX_OSERR, "cap_rights_limit"); -#endif - struct Score new = { .date = time(NULL), .score = game->play(), |