mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 07:25:18 +00:00
[1387] avoid using 'sun' for a variable name. not declare sockaddr_un
as const.
This commit is contained in:
@@ -26,8 +26,8 @@ namespace {
|
|||||||
|
|
||||||
TEST(ClientTest, connetFile) {
|
TEST(ClientTest, connetFile) {
|
||||||
// File path is too long
|
// File path is too long
|
||||||
const struct sockaddr_un sun;
|
struct sockaddr_un s; // can't be const; some compiler complains
|
||||||
EXPECT_THROW(XfroutClient(string(sizeof(sun.sun_path), 'x')).connect(),
|
EXPECT_THROW(XfroutClient(string(sizeof(s.sun_path), 'x')).connect(),
|
||||||
XfroutError);
|
XfroutError);
|
||||||
|
|
||||||
// File doesn't exist (we assume the file "no_such_file" doesn't exist)
|
// File doesn't exist (we assume the file "no_such_file" doesn't exist)
|
||||||
|
Reference in New Issue
Block a user