summaryrefslogtreecommitdiff
path: root/src/sss_client
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-03-12 11:01:37 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-06-29 11:37:16 -0400
commit60a729bfa2aee7529a0c9a276057a47a80381994 (patch)
treecb497e32491e333ee6302e385c43f25c2d6fe8f5 /src/sss_client
parente07a94a66985b674c5df11ca466792902164c4e2 (diff)
downloadsssd-60a729bfa2aee7529a0c9a276057a47a80381994.tar.gz
sssd-60a729bfa2aee7529a0c9a276057a47a80381994.tar.bz2
sssd-60a729bfa2aee7529a0c9a276057a47a80381994.zip
sudo api: remove EOK
Diffstat (limited to 'src/sss_client')
-rw-r--r--src/sss_client/sudo/sss_sudo.h22
-rw-r--r--src/sss_client/sudo/sss_sudo_response.c1
2 files changed, 10 insertions, 13 deletions
diff --git a/src/sss_client/sudo/sss_sudo.h b/src/sss_client/sudo/sss_sudo.h
index 11abc6e3..fe01e65d 100644
--- a/src/sss_client/sudo/sss_sudo.h
+++ b/src/sss_client/sudo/sss_sudo.h
@@ -31,11 +31,6 @@
#include <stdint.h>
-/** The sss_sudo* functions in general return EOK on success */
-#ifndef EOK
-#define EOK 0
-#endif
-
/** The value returned when the communication with SUDO is successful and
* the user was found in one of the domains
*/
@@ -109,10 +104,10 @@ struct sss_sudo_result {
* the user was valid, this structure is "empty", which
* means that the num_rules member is 0.
*
- * @return The return value denotes whether communication with SSSD was
- * successful. It does not tell whether the result contains any rules or
- * whether SSSD knew the user at all. That information is transferred in the
- * _error parameter.
+ * @return 0 on success and other errno values on failure. The return value
+ * denotes whether communication with SSSD was successful. It does not
+ * tell whether the result contains any rules or whether SSSD knew the
+ * user at all. That information is transferred in the _error parameter.
*/
int sss_sudo_send_recv(const char *username,
uint32_t *_error,
@@ -134,9 +129,10 @@ int sss_sudo_send_recv(const char *username,
* is "empty", which means that the num_rules member
* is 0.
*
- * @return The return value denotes whether communication with SSSD was
- * successful. It does not tell whether the result contains any options,
- * That information is transferred in the _error parameter.
+ * @return 0 on success and other errno values on failure. The return value
+ * denotes whether communication with SSSD was successful. It does not
+ * tell whether the result contains any rules or whether SSSD knew the
+ * user at all. That information is transferred in the _error parameter.
*/
int sss_sudo_send_recv_defaults(uint32_t *_error,
struct sss_sudo_result **_result);
@@ -160,7 +156,7 @@ void sss_sudo_free_result(struct sss_sudo_result *result);
* pointer. On failure (including when the attribute is
* not found), the pointer address is not changed.
*
- * @return EOK on success, ENOENT in case the attribute is not found and other
+ * @return 0 on success, ENOENT in case the attribute is not found and other
* errno values on failure.
*
* @note the returned values should be freed using sss_sudo_free_values()
diff --git a/src/sss_client/sudo/sss_sudo_response.c b/src/sss_client/sudo/sss_sudo_response.c
index 1a8c7290..4e74d83a 100644
--- a/src/sss_client/sudo/sss_sudo_response.c
+++ b/src/sss_client/sudo/sss_sudo_response.c
@@ -25,6 +25,7 @@
#include <string.h>
#include <stdint.h>
+#include "sss_client/sss_cli.h"
#include "sss_client/sudo/sss_sudo.h"
#include "sss_client/sudo/sss_sudo_private.h"