Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/systat Don't try to use CPP token pasting to somehow...
details: https://anonhg.NetBSD.org/src/rev/56e05ac589d2
branches: trunk
changeset: 500887:56e05ac589d2
user: cgd <cgd%NetBSD.org@localhost>
date: Wed Dec 20 01:16:42 2000 +0000
description:
Don't try to use CPP token pasting to somehow 'stick' structure member
names on to the -> or . before them. There's no need to, and it's not
actually the right thing!
diffstat:
usr.bin/systat/ip6.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d2f3e5085c85 -r 56e05ac589d2 usr.bin/systat/ip6.c
--- a/usr.bin/systat/ip6.c Wed Dec 20 01:05:22 2000 +0000
+++ b/usr.bin/systat/ip6.c Wed Dec 20 01:16:42 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip6.c,v 1.8 2000/12/01 02:19:43 simonb Exp $ */
+/* $NetBSD: ip6.c,v 1.9 2000/12/20 01:16:42 cgd Exp $ */
/*
* Copyright (c) 1999, 2000 Andrew Doran <ad%NetBSD.org@localhost>
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ip6.c,v 1.8 2000/12/01 02:19:43 simonb Exp $");
+__RCSID("$NetBSD: ip6.c,v 1.9 2000/12/20 01:16:42 cgd Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -49,7 +49,7 @@
#define LHD(row, str) mvwprintw(wnd, row, 10, str)
#define RHD(row, str) mvwprintw(wnd, row, 45, str);
#define SHOW(stat, row, col) \
- mvwprintw(wnd, row, col, "%9llu", (unsigned long long)curstat.##stat)
+ mvwprintw(wnd, row, col, "%9llu", (unsigned long long)curstat.stat)
enum update {
UPDATE_TIME,
Home |
Main Index |
Thread Index |
Old Index