diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-20 10:03:18 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-20 10:03:18 +0200 |
commit | fe39041f98b1abb3a23b43f399963487fe5b66b9 (patch) | |
tree | c4f82400d45abfefec75600726daa635bf4d8247 /sal/osl | |
parent | cd11bc699ac50af4f560ed5f2e5e7903de0898b8 (diff) |
Remove unnecessary casts
Change-Id: Iafc7727a22d657dfb6bc97ed767907cce3679364
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/socket.c b/sal/osl/unx/socket.c index 052ace914c1b..d11297f6268b 100644 --- a/sal/osl/unx/socket.c +++ b/sal/osl/unx/socket.c @@ -790,7 +790,7 @@ static oslHostAddr _osl_hostentToHostAddr (const struct hostent *he) if (_osl_isFullQualifiedDomainName(he->h_name)) { - cn= (sal_Char *)strdup(he->h_name); + cn= strdup(he->h_name); OSL_ASSERT(cn); if (cn == NULL) return ((oslHostAddr)NULL); @@ -887,7 +887,7 @@ oslHostAddr SAL_CALL osl_psz_createHostAddr ( if ((pszHostname == NULL) || (pAddr == NULL)) return ((oslHostAddr)NULL); - cn = (sal_Char *) strdup(pszHostname); + cn = strdup(pszHostname); OSL_ASSERT(cn); if (cn == NULL) return ((oslHostAddr)NULL); |