dj(1): tweak OpenBSD functions

This commit is contained in:
dtb 2024-08-10 22:16:06 -06:00
parent b1a4a1a2b9
commit 10b7f7706b
Signed by: trinity
GPG Key ID: 34C0543BBB6AF81B

View File

@ -170,12 +170,6 @@ usage(char *argv0) {
} }
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
#ifdef __OpenBSD__
if (pledge("cpath rpath stdio unveil wpath", NULL) == -1) {
return oserr(NULL", errno);
}
#endif
int align; /* low 8b used, negative if no alignment is being done */ int align; /* low 8b used, negative if no alignment is being done */
int count; /* -1 if dj(1) runs until no more reads are possible */ int count; /* -1 if dj(1) runs until no more reads are possible */
char *fmt; /* set to fmt_asv (default) or fmt_human (-H) */ char *fmt; /* set to fmt_asv (default) or fmt_human (-H) */