Slightly de-bogify the uname() declarations.
1: there is no global 'struct utsname utsname' in the kernel. 2: the __P() stuff handles the __STDC__ stuff, so the extra ifdef is redundant.
This commit is contained in:
parent
b8edd5f97d
commit
37072b4942
@ -50,20 +50,12 @@ struct utsname {
|
||||
char machine[SYS_NMLN]; /* Hardware type. */
|
||||
};
|
||||
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
|
||||
#ifndef _KERNEL
|
||||
#ifdef __STDC__
|
||||
__BEGIN_DECLS
|
||||
int uname __P((struct utsname *));
|
||||
__END_DECLS
|
||||
#else
|
||||
extern int uname();
|
||||
#endif
|
||||
#else
|
||||
extern struct utsname utsname;
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_SYS_UTSNAME_H */
|
||||
|
Loading…
Reference in New Issue
Block a user