Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Don't nest enum in structures.



details:   https://anonhg.NetBSD.org/src/rev/d3dbbc0e4ad1
branches:  trunk
changeset: 802175:d3dbbc0e4ad1
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Sep 05 05:46:54 2014 +0000

description:
Don't nest enum in structures.

diffstat:

 sys/sys/spawn.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 2fea14ba2c06 -r d3dbbc0e4ad1 sys/sys/spawn.h
--- a/sys/sys/spawn.h   Fri Sep 05 05:46:15 2014 +0000
+++ b/sys/sys/spawn.h   Fri Sep 05 05:46:54 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spawn.h,v 1.4 2013/04/27 21:35:25 joerg Exp $  */
+/*     $NetBSD: spawn.h,v 1.5 2014/09/05 05:46:54 matt Exp $   */
 
 /*-
  * Copyright (c) 2008 Ed Schouten <ed%FreeBSD.org@localhost>
@@ -47,8 +47,9 @@
        sigset_t                sa_sigmask;
 };
 
+enum fae_action { FAE_OPEN, FAE_DUP2, FAE_CLOSE };
 typedef struct posix_spawn_file_actions_entry {
-       enum { FAE_OPEN, FAE_DUP2, FAE_CLOSE } fae_action;
+       enum fae_action fae_action;
 
        int fae_fildes;
        union {



Home | Main Index | Thread Index | Old Index