Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/linux Separate `struc...
details: https://anonhg.NetBSD.org/src/rev/a069d78e85f9
branches: riastradh-drm2
changeset: 788150:a069d78e85f9
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:27:38 2013 +0000
description:
Separate `struct atomic { ... }' from typedef for greppability.
diffstat:
sys/external/bsd/drm2/include/linux/atomic.h | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r da4d205575e9 -r a069d78e85f9 sys/external/bsd/drm2/include/linux/atomic.h
--- a/sys/external/bsd/drm2/include/linux/atomic.h Wed Jul 24 02:27:23 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/atomic.h Wed Jul 24 02:27:38 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic.h,v 1.1.2.5 2013/07/24 02:08:01 riastradh Exp $ */
+/* $NetBSD: atomic.h,v 1.1.2.6 2013/07/24 02:27:38 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -34,12 +34,14 @@
#include <sys/atomic.h>
-typedef struct {
+struct atomic {
union {
int au_int;
unsigned int au_uint;
} a_u;
-} atomic_t;
+};
+
+typedef struct atomic atomic_t;
static inline int
atomic_read(atomic_t *atomic)
Home |
Main Index |
Thread Index |
Old Index