Use Makefile VERSION in code. From jolan@
Add RCS tag. memcmp should not report stderror.
This commit is contained in:
parent
edc8f04975
commit
1bb79d6bfc
@ -1,7 +1,7 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2005/12/06 16:57:47 jolan Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2005/12/06 17:38:58 marco Exp $
|
||||
|
||||
COMMENT= "i/o generator"
|
||||
PKGNAME= iogen-1.00
|
||||
PKGNAME= iogen-1.01
|
||||
CATEGORIES= sysutils
|
||||
DISTFILES=
|
||||
|
||||
@ -14,6 +14,7 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
NO_CHECKSUM= Yes
|
||||
NO_REGRESS= Yes
|
||||
|
||||
CFLAGS+= -DVERSION="${PKGNAME:S/iogen-//}"
|
||||
FAKE_FLAGS+= BINDIR="${PREFIX}/bin" DESTDIR="${WRKINST}"
|
||||
MAKE_ENV= CC="${CC}"
|
||||
WRKDIST= ${WRKDIR}
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* $OpenBSD: iogen.c,v 1.2 2005/12/06 17:38:58 marco Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2005 Marco Peereboom <marco@peereboom.us>
|
||||
*
|
||||
@ -31,8 +32,6 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#define VERSION "v1.00"
|
||||
|
||||
#define LOGFATAL 0x01
|
||||
#define LOGERR 0x02
|
||||
|
||||
@ -342,10 +341,10 @@ run_io(void)
|
||||
|
||||
if (!randomize)
|
||||
if (memcmp(src, dst, io_size) != 0)
|
||||
err_log(LOGFATAL | LOGERR,
|
||||
err_log(LOGFATAL,
|
||||
"source and destination "
|
||||
"buffer not the same in process %i",
|
||||
getpid()); /* XXX no stderr */
|
||||
getpid());
|
||||
}
|
||||
|
||||
/* writes */
|
||||
|
Loading…
x
Reference in New Issue
Block a user