Skip to content
  • Fam Zheng's avatar
    ee7d7aab
    nbd: Always call "close_fn" in nbd_client_new · ee7d7aab
    Fam Zheng authored
    
    
    Rename the parameter "close" to "close_fn" to disambiguous with
    close(2).
    
    This unifies error handling paths of NBDClient allocation:
    nbd_client_new will shutdown the socket and call the "close_fn" callback
    if negotiation failed, so the caller don't need a different path than
    the normal close.
    
    The returned pointer is never used, make it void in preparation for the
    next patch.
    
    Signed-off-by: default avatarFam Zheng <famz@redhat.com>
    Message-Id: <1452760863-25350-2-git-send-email-famz@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    ee7d7aab
    nbd: Always call "close_fn" in nbd_client_new
    Fam Zheng authored
    
    
    Rename the parameter "close" to "close_fn" to disambiguous with
    close(2).
    
    This unifies error handling paths of NBDClient allocation:
    nbd_client_new will shutdown the socket and call the "close_fn" callback
    if negotiation failed, so the caller don't need a different path than
    the normal close.
    
    The returned pointer is never used, make it void in preparation for the
    next patch.
    
    Signed-off-by: default avatarFam Zheng <famz@redhat.com>
    Message-Id: <1452760863-25350-2-git-send-email-famz@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Loading