diff options
author | 2016-09-04 15:43:51 +0000 | |
---|---|---|
committer | 2016-09-04 15:43:51 +0000 | |
commit | df5aa7dacf04fcadda20bcde4be556fc70f63ed3 (patch) | |
tree | 19015d23cffd90f12380f74048dcb8049cb715db | |
parent | usage() is __dead and main() needs no prototype (diff) | |
download | wireguard-openbsd-df5aa7dacf04fcadda20bcde4be556fc70f63ed3.tar.xz wireguard-openbsd-df5aa7dacf04fcadda20bcde4be556fc70f63ed3.zip |
unifdef SAVECORE now that we're done sharing
-rw-r--r-- | sbin/savecore/Makefile | 3 | ||||
-rw-r--r-- | sbin/savecore/zopen.c | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sbin/savecore/Makefile b/sbin/savecore/Makefile index 6af426ae22a..197dd7cfcf1 100644 --- a/sbin/savecore/Makefile +++ b/sbin/savecore/Makefile @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile,v 1.20 2016/09/03 13:05:08 tedu Exp $ +# $OpenBSD: Makefile,v 1.21 2016/09/04 15:43:51 tedu Exp $ PROG= savecore SRCS= savecore.c zopen.c -CFLAGS+=-DSAVECORE LDADD= -lkvm DPADD= ${LIBKVM} MAN= savecore.8 diff --git a/sbin/savecore/zopen.c b/sbin/savecore/zopen.c index f54a53fede7..4cb563b8816 100644 --- a/sbin/savecore/zopen.c +++ b/sbin/savecore/zopen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zopen.c,v 1.1 2016/09/03 13:05:08 tedu Exp $ */ +/* $OpenBSD: zopen.c,v 1.2 2016/09/04 15:43:51 tedu Exp $ */ /* $NetBSD: zopen.c,v 1.5 1995/03/26 09:44:53 glass Exp $ */ /*- @@ -335,9 +335,6 @@ z_close(void *cookie, struct z_info *info, const char *name, struct stat *sb) info->total_out = (off_t)zs->zs_bytes_out; } -#ifndef SAVECORE - setfile(name, zs->zs_fd, sb); -#endif rval = close(zs->zs_fd); free(zs); return (rval); |