]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/common/ChangeLog
sim: use socklen_t with accept()
authorMike Frysinger <vapier@gentoo.org>
Tue, 30 Mar 2010 23:09:48 +0000 (23:09 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 30 Mar 2010 23:09:48 +0000 (23:09 +0000)
commit75005b3a8e2897f056a0adabac591fbf4bad91cd
treedd9eae5df83dcf4f9be16094d08f0da4696e8126
parent2422fad9eb9932dca8cdb98f38d9a024b786be1a
sim: use socklen_t with accept()

The accept() function takes a socklen_t, not an int.  Using an int causes:
dv-sockser.c: In function 'connected_p':
dv-sockser.c:273: warning: pointer targets in passing argument 3
                           of 'accept' differ in signedness

So use the same socklen_t detection code as gdb and convert the accept().
sim/common/ChangeLog
sim/common/config.in
sim/common/configure
sim/common/configure.ac
sim/common/dv-sockser.c