Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/nvi/dist/common Correct previous change to CHAR...
details: https://anonhg.NetBSD.org/src/rev/3e148c9cd7a0
branches: trunk
changeset: 319957:3e148c9cd7a0
user: kamil <kamil%NetBSD.org@localhost>
date: Sat Jun 16 21:00:12 2018 +0000
description:
Correct previous change to CHAR_T_OFFSET
The intended operation is offsetof(), not alignof().
Noted by <christos>
diffstat:
external/bsd/nvi/dist/common/log.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 09f4ff0cf24e -r 3e148c9cd7a0 external/bsd/nvi/dist/common/log.c
--- a/external/bsd/nvi/dist/common/log.c Sat Jun 16 19:05:17 2018 +0000
+++ b/external/bsd/nvi/dist/common/log.c Sat Jun 16 21:00:12 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: log.c,v 1.4 2018/06/16 18:54:52 kamil Exp $ */
+/* $NetBSD: log.c,v 1.5 2018/06/16 21:00:12 kamil Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -16,7 +16,7 @@
static const char sccsid[] = "Id: log.c,v 10.26 2002/03/02 23:12:13 skimo Exp (Berkeley) Date: 2002/03/02 23:12:13 ";
#endif /* not lint */
#else
-__RCSID("$NetBSD: log.c,v 1.4 2018/06/16 18:54:52 kamil Exp $");
+__RCSID("$NetBSD: log.c,v 1.5 2018/06/16 21:00:12 kamil Exp $");
#endif
#include <sys/types.h>
@@ -90,7 +90,7 @@
char data[sizeof(u_char) /* type */ + sizeof(db_recno_t)];
CHAR_T str[1];
} log_t;
-#define CHAR_T_OFFSET (__alignof__(log_t))
+#define CHAR_T_OFFSET (offsetof(log_t, str))
/*
* log_init --
Home |
Main Index |
Thread Index |
Old Index