From: Peter Howkins Date: Mon, 12 Mar 2012 00:25:04 +0000 (+0000) Subject: Use socklen_t type for argument for getsockname() X-Git-Tag: 2.2.0a~26^2~125 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4a6f362ee717434c826379d2666034d8d2981a1e;p=oweals%2Fcde.git Use socklen_t type for argument for getsockname() --- diff --git a/cde/lib/tt/bin/ttdbserverd/db_server_svc.C b/cde/lib/tt/bin/ttdbserverd/db_server_svc.C index 749db6df..dd6355b6 100644 --- a/cde/lib/tt/bin/ttdbserverd/db_server_svc.C +++ b/cde/lib/tt/bin/ttdbserverd/db_server_svc.C @@ -217,8 +217,12 @@ main(int argc, char** argv, char **envp) #if defined(DEC) || defined(sun) || defined(HPUX) int asize = sizeof(struct sockaddr); #else +# if defined(linux) + socklen_t asize; +# else size_t asize = sizeof(struct sockaddr); -#endif /* DEC or sun or HPUX */ +# endif +#endif int is_aix = 0; int do_garbage_collect = 0;