X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fse-context.in.h;h=5eb95af22cc8d4fef646fbaa8755e487a8e1ad96;hb=9fbf8e1a391ab49dca9c608a32af9a42831f3445;hp=ec88a0318e0f33ed4d8b106b6f9ee7719f8473f7;hpb=e68f0b9d87e199e6b673b732cf48d80367b762c2;p=gnulib.git diff --git a/lib/se-context.in.h b/lib/se-context.in.h index ec88a0318..5eb95af22 100644 --- a/lib/se-context.in.h +++ b/lib/se-context.in.h @@ -2,30 +2,25 @@ # define SELINUX_CONTEXT_H # include -/* Some systems don't have ENOTSUP. */ -# ifndef ENOTSUP -# ifdef ENOSYS -# define ENOTSUP ENOSYS -# else -/* Some systems don't have ENOSYS either. */ -# define ENOTSUP EINVAL -# endif -# endif typedef int context_t; -static inline context_t context_new (char const *s) +static inline context_t context_new (char const *s _UNUSED_PARAMETER_) { errno = ENOTSUP; return 0; } -static inline char *context_str (context_t con) +static inline char *context_str (context_t con _UNUSED_PARAMETER_) { errno = ENOTSUP; return (void *) 0; } -static inline void context_free (context_t c) {} +static inline void context_free (context_t c _UNUSED_PARAMETER_) {} -static inline int context_user_set (context_t sc, char const *s) +static inline int context_user_set (context_t sc _UNUSED_PARAMETER_, + char const *s _UNUSED_PARAMETER_) { errno = ENOTSUP; return -1; } -static inline int context_role_set (context_t sc, char const *s) +static inline int context_role_set (context_t sc _UNUSED_PARAMETER_, + char const *s _UNUSED_PARAMETER_) { errno = ENOTSUP; return -1; } -static inline int context_range_set (context_t sc, char const *s) +static inline int context_range_set (context_t sc _UNUSED_PARAMETER_, + char const *s _UNUSED_PARAMETER_) { errno = ENOTSUP; return -1; } -static inline int context_type_set (context_t sc, char const *s) +static inline int context_type_set (context_t sc _UNUSED_PARAMETER_, + char const *s _UNUSED_PARAMETER_) { errno = ENOTSUP; return -1; } #endif