daemon: use socklen_t
commitc295cf06608cb07a132abef5802366522fd2f5e0
authorErik Faye-Lund <kusmabite@gmail.com>
Thu, 4 Nov 2010 01:35:22 +0000 (4 02:35 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Nov 2010 23:53:52 +0000 (4 16:53 -0700)
treef2679ecebf4e8e2aed7b2092f9d044b824ff0abd
parentfdc12114635581b6901940ddb467a78716bc12ca
daemon: use socklen_t

Windows's accept()-function takes the last argument as an int, but glibc
takes an unsigned int. Use socklen_t to get rid of a warning. This is
basically a revert of 7fa0908, but we have already been depending on
socklen_t existing since June 2006 (commit 5b276ee4). I guess this means
that socklen_t IS defined on OSX after all - at least in recent headers.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
daemon.c