mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix warning.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4567 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
33eb5ec8dd
commit
e756af3660
@ -236,7 +236,8 @@ int RpcAccept (RPCSock *master, RPCSock **client)
|
||||
|
||||
memset (new, 0, sizeof (*new));
|
||||
len = sizeof (new->peer);
|
||||
if ((new->sock = accept (master->sock, &(new->peer), &len)) < 0) {
|
||||
if ((new->sock = accept (master->sock,
|
||||
(struct sockaddr *) &(new->peer), &len)) < 0) {
|
||||
g_free (new);
|
||||
return ERR_RPC_CANT_ACCEPT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user