diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-11-05 09:36:00 +0100 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2010-11-22 16:01:35 -0500 |
commit | 960fc6644714c1231a0822bc24b0750c873557df (patch) | |
tree | 4bc28ddd72920bc8d81a69a647a421be2800655a /ipa-client/ipa-join.c | |
parent | 7086c9e8635a47966a7222e8efa30e873f0c1d95 (diff) | |
download | freeipa-960fc6644714c1231a0822bc24b0750c873557df.tar.gz freeipa-960fc6644714c1231a0822bc24b0750c873557df.tar.xz freeipa-960fc6644714c1231a0822bc24b0750c873557df.zip |
ipa-client code cleanup
Fixes errors about implicit function declaration and moves duplicated
gettext code into a common module. Also silences some warnings.
Signed-off-by: Simo Sorce <ssorce@redhat.com>
Diffstat (limited to 'ipa-client/ipa-join.c')
-rw-r--r-- | ipa-client/ipa-join.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/ipa-client/ipa-join.c b/ipa-client/ipa-join.c index e67f29b81..01afa1ad0 100644 --- a/ipa-client/ipa-join.c +++ b/ipa-client/ipa-join.c @@ -38,8 +38,7 @@ #include "xmlrpc-c/base.h" #include "xmlrpc-c/client.h" -#include <libintl.h> -#define _(STRING) gettext(STRING) +#include "ipa-client-common.h" #define NAME "ipa-join" #define VERSION "1.0" @@ -82,14 +81,6 @@ getIPAserver(char * data) { return get_config_entry(data, "global", "server"); } -/* Get the IPA realm from the configuration file. - * The caller is responsible for freeing this value - */ -static char * -getIPArealm(char * data) { - return get_config_entry(data, "global", "realm"); -} - /* Make sure that the keytab is writable before doing anything */ static int check_perms(const char *keytab) { @@ -951,7 +942,7 @@ cleanup: * unique (host already added). */ int -main(int argc, char **argv) { +main(int argc, const char **argv) { static const char *hostname = NULL; static const char *server = NULL; static const char *keytab = NULL; |