diff options
| author | Günther Deschner <gdeschner@redhat.com> | 2013-11-21 16:25:18 +0100 |
|---|---|---|
| committer | Günther Deschner <gdeschner@redhat.com> | 2013-11-21 16:31:19 +0100 |
| commit | 93db6a9bd2f8e91405f5ee068ed5c72d59f6b4eb (patch) | |
| tree | 494ec8b9ef405b681f54f93fb8a52bafa998d9f2 | |
| parent | 23f4ee4359d10f66e1938ce6b1d92d3cc77865ff (diff) | |
| download | gss-proxy-93db6a9bd2f8e91405f5ee068ed5c72d59f6b4eb.tar.gz gss-proxy-93db6a9bd2f8e91405f5ee068ed5c72d59f6b4eb.tar.xz gss-proxy-93db6a9bd2f8e91405f5ee068ed5c72d59f6b4eb.zip | |
util: add gp_strerror() function.
Currently it only calls back into strerror().
Signed-off-by: Günther Deschner <gdeschner@redhat.com>
| -rw-r--r-- | proxy/src/gp_common.h | 1 | ||||
| -rw-r--r-- | proxy/src/gp_util.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/proxy/src/gp_common.h b/proxy/src/gp_common.h index b5c525f..e2d4e75 100644 --- a/proxy/src/gp_common.h +++ b/proxy/src/gp_common.h @@ -68,6 +68,7 @@ bool gp_same(const char *a, const char *b); bool gp_boolean_is_true(const char *s); char *gp_getenv(const char *name); +char *gp_strerror(int errnum); #include "rpcgen/gss_proxy.h" diff --git a/proxy/src/gp_util.c b/proxy/src/gp_util.c index a6c870f..1698f74 100644 --- a/proxy/src/gp_util.c +++ b/proxy/src/gp_util.c @@ -66,3 +66,9 @@ char *gp_getenv(const char *name) return NULL; #endif } + +char *gp_strerror(int errnum) +{ + return strerror(errnum); + +} |
