Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/libevent/dist/test Fix memcmp use.
details: https://anonhg.NetBSD.org/src/rev/9a8cbd3f54de
branches: trunk
changeset: 325718:9a8cbd3f54de
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Jan 04 02:56:31 2014 +0000
description:
Fix memcmp use.
diffstat:
external/bsd/libevent/dist/test/regress_buffer.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 375cd7005381 -r 9a8cbd3f54de external/bsd/libevent/dist/test/regress_buffer.c
--- a/external/bsd/libevent/dist/test/regress_buffer.c Sat Jan 04 02:09:12 2014 +0000
+++ b/external/bsd/libevent/dist/test/regress_buffer.c Sat Jan 04 02:56:31 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: regress_buffer.c,v 1.2 2013/04/11 16:56:42 christos Exp $ */
+/* $NetBSD: regress_buffer.c,v 1.3 2014/01/04 02:56:31 joerg Exp $ */
/*
* Copyright (c) 2003-2007 Niels Provos <provos%citi.umich.edu@localhost>
* Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
@@ -33,7 +33,7 @@
#include "event2/event-config.h"
#include <sys/cdefs.h>
-__RCSID("$NetBSD: regress_buffer.c,v 1.2 2013/04/11 16:56:42 christos Exp $");
+__RCSID("$NetBSD: regress_buffer.c,v 1.3 2014/01/04 02:56:31 joerg Exp $");
#include <sys/types.h>
#include <sys/stat.h>
@@ -247,7 +247,7 @@
if (memcmp(evbuffer_pullup(
evb, -1), buffer, sizeof(buffer) / 2) != 0 ||
memcmp(evbuffer_pullup(
- evb_two, -1), buffer, sizeof(buffer) != 0))
+ evb_two, -1), buffer, sizeof(buffer)) != 0)
tt_abort_msg("Pullup did not preserve content");
evbuffer_validate(evb);
Home |
Main Index |
Thread Index |
Old Index