summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-client-common.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-11-05 09:36:00 +0100
committerSimo Sorce <ssorce@redhat.com>2010-11-22 16:01:35 -0500
commit960fc6644714c1231a0822bc24b0750c873557df (patch)
tree4bc28ddd72920bc8d81a69a647a421be2800655a /ipa-client/ipa-client-common.h
parent7086c9e8635a47966a7222e8efa30e873f0c1d95 (diff)
downloadfreeipa-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-client-common.h')
-rw-r--r--ipa-client/ipa-client-common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ipa-client/ipa-client-common.h b/ipa-client/ipa-client-common.h
new file mode 100644
index 000000000..dbf474d52
--- /dev/null
+++ b/ipa-client/ipa-client-common.h
@@ -0,0 +1,9 @@
+#ifndef __IPA_CLIENT_COMMON_H
+#define __IPA_CLIENT_COMMON_H
+
+#include <libintl.h>
+#define _(STRING) gettext(STRING)
+
+int init_gettext(void);
+
+#endif /* __IPA_CLIENT_COMMON_H */