Changeset 539 for trunk/src/sh_tools.c


Ignore:
Timestamp:
Jan 7, 2019, 8:03:37 PM (6 years ago)
Author:
katerina
Message:

Fixes for tickets #431 (OpenBSD compatibility) and #432 (compiler warnings).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_tools.c

    r481 r539  
    188188      if (-1 == (sd = socket(AF_INET, SOCK_STREAM, 0)))
    189189        {
     190          /* cppcheck-suppress resourceLeak */
    190191          return 0;
    191192        }
     
    864865      if (tools_debug)
    865866        fputs(_("-03- cached\n"), stderr);
     867      /* cppcheck-suppress uninitStructMember */
    866868      fd = socket(ss.ss_family, SOCK_STREAM, 0);
    867869      if (fd < 0)
     
    879881      if (fail != (-1))
    880882        {
     883          /* cppcheck-suppress uninitStructMember */
    881884          int addrlen = SH_SS_LEN(ss);
    882        
     885
    883886          if ( retry_connect(FIL__, __LINE__, fd,
    884887                             sh_ipvx_sockaddr_cast(&ss), addrlen) < 0)
Note: See TracChangeset for help on using the changeset viewer.