Skip to content

Fix warnings in server.c / client.c Windows build #235

@jsha

Description

@jsha
tests/server.c(57): warning C4013: 'ws_strerror' undefined; assuming extern returning int
tests/server.c(57): warning C4477: 'fprintf' : format string '%s' requires an argument of type 'char *', but variadic argument 2 has type 'int'
tests/server.c(57): warning C4313: 'fprintf': '%s' in format string conflicts with argument 2 of type 'int'
tests/server.c(62): warning C4477: 'fprintf' : format string '%s' requires an argument of type 'char *', but variadic argument 2 has type 'int'
tests/server.c(62): warning C4313: 'fprintf': '%s' in format string conflicts with argument 2 of type 'int'
tests/server.c(98): warning C4477: 'fprintf' : format string '%s' requires an argument of type 'char *', but variadic argument 1 has type 'int'
tests/server.c(98): warning C4313: 'fprintf': '%s' in format string conflicts with argument 1 of type 'int'
tests/server.c(110): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 1 has type 'size_t'
tests/server.c(110): note: consider using '%zd' in the format string
tests/server.c(129): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 1 has type 'size_t'
tests/server.c(129): note: consider using '%zd' in the format string
tests/server.c(135): warning C4477: 'fprintf' : format string '%s' requires an argument of type 'char *', but variadic argument 1 has type 'int'
tests/server.c(135): warning C4313: 'fprintf': '%s' in format string conflicts with argument 1 of type 'int'
tests/server.c(168): warning C4477: 'fprintf' : format string '%ld' requires an argument of type 'long', but variadic argument 1 has type 'size_t'
tests/server.c(168): note: consider using '%zd' in the format string
tests/server.c(331): error C2079: 'siga' uses undefined struct 'sigaction'
tests/server.c(332): error C2224: left of '.sa_handler' must have struct/union type
tests/server.c(333): warning C4013: 'sigaction' undefined; assuming extern returning int
tests/server.c(363): warning C4244: '=': conversion from 'SOCKET' to 'int', possible loss of data
tests/server.c(365): warning C4477: 'fprintf' : format string '%s' requires an argument of type 'char *', but variadic argument 1 has type 'int'
tests/server.c(365): warning C4313: 'fprintf': '%s' in format string conflicts with argument 1 of type 'int'
tests/server.c(369): warning C4133: 'function': incompatible types - from 'int *' to 'const char *'
tests/server.c(379): warning C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
tests/server.c(396): warning C4244: 'initializing': conversion from 'SOCKET' to 'int', possible loss of data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions