summaryrefslogtreecommitdiff
path: root/math/moo/files/patch-moo.y
blob: 9d9ea2a78efeabb73529975e083300e503fbe507 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- moo.y.orig	2016-06-04 10:05:27 UTC
+++ moo.y
@@ -34,7 +34,7 @@ static int used_oct;
 
 static void		divbyzero(void);
 static void		printnum(int64_t);
-__dead static void	usage(void);
+__dead2 static void	usage(void);
 void			yyerror(char *);
 int			yylex(void);
 int			yyparse(void);
@@ -317,9 +317,6 @@ main(int argc, char *argv[])
 {
 	int ch;
 
-	if (pledge("stdio tmppath", NULL) == -1)
-		err(1, "pledge");
-
 	while ((ch = getopt(argc, argv, "0123456789b:lsuw:")) != -1)
 		switch (ch) {
 		/*
@@ -403,9 +400,6 @@ DONEPARSING:
 		yyin = sfp;
 	}
 
-	if (pledge("stdio", NULL) == -1)
-		err(1, "pledge");
-
 	yyparse();
 
 	return (0);