Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
0c8c0f80
Commit
0c8c0f80
authored
Dec 07, 2011
by
JINMEI Tatuya
Browse files
[1387] avoid using 'sun' for a variable name. not declare sockaddr_un
as const.
parent
df44752c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/lib/xfr/tests/client_test.cc
View file @
0c8c0f80
...
...
@@ -26,8 +26,8 @@ namespace {
TEST
(
ClientTest
,
connetFile
)
{
// File path is too long
const
struct
sockaddr_un
s
un
;
EXPECT_THROW
(
XfroutClient
(
string
(
sizeof
(
s
un
.
sun_path
),
'x'
)).
connect
(),
struct
sockaddr_un
s
;
// can't be const; some compiler complains
EXPECT_THROW
(
XfroutClient
(
string
(
sizeof
(
s
.
sun_path
),
'x'
)).
connect
(),
XfroutError
);
// File doesn't exist (we assume the file "no_such_file" doesn't exist)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment