mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-19 14:43:30 +02:00
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in 'lib/rdunixsocket.cpp'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
a1388ed735
commit
9f517d6176
@ -21792,3 +21792,5 @@
|
|||||||
* Cleaned up compile warnings in 'lib/rdttydevice.cpp'.
|
* Cleaned up compile warnings in 'lib/rdttydevice.cpp'.
|
||||||
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
|
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Cleaned up compile warnings in 'lib/rdupload.cpp'.
|
* Cleaned up compile warnings in 'lib/rdupload.cpp'.
|
||||||
|
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Cleaned up compile warnings in 'lib/rdunixsocket.cpp'.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// UNIX Socket
|
// UNIX Socket
|
||||||
//
|
//
|
||||||
// (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2018-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License version 2 as
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -48,7 +48,7 @@ bool RDUnixSocket::connectToAbstract(const QString &addr,
|
|||||||
}
|
}
|
||||||
memset(&sa,0,sizeof(sa));
|
memset(&sa,0,sizeof(sa));
|
||||||
sa.sun_family=AF_UNIX;
|
sa.sun_family=AF_UNIX;
|
||||||
strncpy(sa.sun_path+1,addr.toUtf8(),UNIX_PATH_MAX-1);
|
strncpy(sa.sun_path+1,addr.toUtf8(),UNIX_PATH_MAX-2);
|
||||||
if(::connect(sock,(struct sockaddr *)(&sa),sizeof(sa))<0) {
|
if(::connect(sock,(struct sockaddr *)(&sa),sizeof(sa))<0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user