changeset 11144:7c4b3eec2d66

6903614 sys/condvar.h time_res enum should not be visible outside the kernel
author Rafael Vanoni <rafael.vanoni@sun.com>
date Fri, 20 Nov 2009 17:40:56 -0800
parents f855b68211a7
children c1f49419a884
files usr/src/uts/common/sys/condvar.h
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/sys/condvar.h	Sat Nov 21 10:21:47 2009 +0800
+++ b/usr/src/uts/common/sys/condvar.h	Fri Nov 20 17:40:56 2009 -0800
@@ -61,28 +61,26 @@
 	CV_DRIVER
 } kcv_type_t;
 
+#if defined(_KERNEL)
+
 /*
  * Time resolution values used in cv_reltimedwait() and cv_reltimedwait_sig()
  * to specify how accurately a relative timeout must expire - if it can be
  * anticipated or deferred.
  */
-enum time_res {
+typedef enum {
 	TR_NANOSEC,
 	TR_MICROSEC,
 	TR_MILLISEC,
 	TR_SEC,
 	TR_CLOCK_TICK,
 	TR_COUNT
-};
-
-typedef enum time_res time_res_t;
+} time_res_t;
 
 extern time_res_t time_res[];
 
 #define	TIME_RES_VALID(tr)	(tr >= TR_NANOSEC && tr < TR_COUNT)
 
-#if defined(_KERNEL)
-
 /*
  * condition variable function prototypes
  */