From 4a6f362ee717434c826379d2666034d8d2981a1e Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 12 Mar 2012 00:25:04 +0000 Subject: [PATCH] Use socklen_t type for argument for getsockname() --- cde/lib/tt/bin/ttdbserverd/db_server_svc.C | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.25.1