diff options
author | Bruce Evans <bde@FreeBSD.org> | 2002-03-16 12:50:02 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 2002-03-16 12:50:02 +0000 |
commit | bccfa3f5d555cb48997c9f63a669e0161c5deac3 (patch) | |
tree | 67581097561eb93d7cc8ba1c183a14db5a6be7ba /sys | |
parent | 3ede2e88ea7a60ce26c22976f60e0480e649336c (diff) | |
download | src-bccfa3f5d555cb48997c9f63a669e0161c5deac3.tar.gz src-bccfa3f5d555cb48997c9f63a669e0161c5deac3.zip |
Fixed some style bugs:
- 2 redundant forward declarations of "struct thread"
- missing function parameter names in prototypes
- misformatting
Notes
Notes:
svn path=/head/; revision=92407
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/selinfo.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/sys/selinfo.h b/sys/sys/selinfo.h index 318681fc6994..e51f64539497 100644 --- a/sys/sys/selinfo.h +++ b/sys/sys/selinfo.h @@ -37,9 +37,8 @@ #ifndef _SYS_SELINFO_H_ #define _SYS_SELINFO_H_ -#include <sys/event.h> /* for struct klist */ +#include <sys/event.h> /* for struct klist */ -struct thread; /* * Used to maintain information about processes that wish to be * notified when I/O becomes possible. @@ -52,16 +51,13 @@ struct selinfo { }; #define SI_COLL 0x0001 /* collision occurred */ -#define SEL_WAITING(si) \ +#define SEL_WAITING(si) \ ((si)->si_thread != NULL || ((si)->si_flags & SI_COLL) != 0) #ifdef _KERNEL -struct thread; - -void clear_selinfo_list(struct thread *); -void selrecord __P((struct thread *selector, struct selinfo *)); -void selwakeup __P((struct selinfo *)); - +void clear_selinfo_list(struct thread *td); +void selrecord __P((struct thread *selector, struct selinfo *sip)); +void selwakeup __P((struct selinfo *sip)); #endif #endif /* !_SYS_SELINFO_H_ */ |