kopia lustrzana https://github.com/Hamlib/Hamlib
Fix compile warnings on termios.c
rodzic
9d5bc2f385
commit
da86568edb
|
@ -1342,27 +1342,27 @@ static int check_port_capabilities(struct termios_list *index)
|
||||||
if (!(cp.dwProvCapabilities & PCF_DTRDSR))
|
if (!(cp.dwProvCapabilities & PCF_DTRDSR))
|
||||||
{
|
{
|
||||||
sprintf(message,
|
sprintf(message,
|
||||||
"%s: no DTR & DSR support\n", index->filename);
|
"%s: no DTR & DSR support\n", __func__);
|
||||||
report(message);
|
report(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(cp.dwProvCapabilities & PCF_RLSD))
|
if (!(cp.dwProvCapabilities & PCF_RLSD))
|
||||||
{
|
{
|
||||||
sprintf(message, "%s: no carrier detect (RLSD) support\n",
|
sprintf(message, "%s: no carrier detect (RLSD) support\n",
|
||||||
index->filename);
|
__func__);
|
||||||
report(message);
|
report(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(cp.dwProvCapabilities & PCF_RTSCTS))
|
if (!(cp.dwProvCapabilities & PCF_RTSCTS))
|
||||||
{
|
{
|
||||||
sprintf(message,
|
sprintf(message,
|
||||||
"%s: no RTS & CTS support\n", index->filename);
|
"%s: no RTS & CTS support\n", __func__);
|
||||||
report(message);
|
report(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(cp.dwProvCapabilities & PCF_TOTALTIMEOUTS))
|
if (!(cp.dwProvCapabilities & PCF_TOTALTIMEOUTS))
|
||||||
{
|
{
|
||||||
sprintf(message, "%s: no timeout support\n", index->filename);
|
sprintf(message, "%s: no timeout support\n", __func__);
|
||||||
report(message);
|
report(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1392,7 +1392,7 @@ serial_open()
|
||||||
int win32_serial_open(const char *filename, int flags, ...)
|
int win32_serial_open(const char *filename, int flags, ...)
|
||||||
{
|
{
|
||||||
struct termios_list *index;
|
struct termios_list *index;
|
||||||
char message[80];
|
char message[160];
|
||||||
char fullfilename[80];
|
char fullfilename[80];
|
||||||
|
|
||||||
ENTER("serial_open");
|
ENTER("serial_open");
|
||||||
|
|
Ładowanie…
Reference in New Issue