Perform code cleanup on test pledges

This commit is contained in:
Justine Tunney 2022-07-24 22:34:13 -07:00
parent 3d2cf95af1
commit 3443039f34
54 changed files with 112 additions and 83 deletions

View file

@ -37,8 +37,8 @@
#include "tool/decode/lib/flagger.h"
#include "tool/decode/lib/pollnames.h"
__attribute__((__constructor__)) static void init(void) {
pledge("stdio rpath proc inet", 0);
void SetUpOnce(void) {
pledge("stdio proc inet", 0);
errno = 0;
}