Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
87e00feb
Commit
87e00feb
authored
Feb 16, 2018
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warning fixes.
parent
2d69d614
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
src/dnsmasq.c
src/dnsmasq.c
+14
-5
src/option.c
src/option.c
+2
-2
No files found.
src/dnsmasq.c
View file @
87e00feb
...
@@ -1213,31 +1213,40 @@ static void fatal_event(struct event_desc *ev, char *msg)
...
@@ -1213,31 +1213,40 @@ static void fatal_event(struct event_desc *ev, char *msg)
case
EVENT_FORK_ERR
:
case
EVENT_FORK_ERR
:
die
(
_
(
"cannot fork into background: %s"
),
NULL
,
EC_MISC
);
die
(
_
(
"cannot fork into background: %s"
),
NULL
,
EC_MISC
);
/* fall through */
case
EVENT_PIPE_ERR
:
case
EVENT_PIPE_ERR
:
die
(
_
(
"failed to create helper: %s"
),
NULL
,
EC_MISC
);
die
(
_
(
"failed to create helper: %s"
),
NULL
,
EC_MISC
);
/* fall through */
case
EVENT_CAP_ERR
:
case
EVENT_CAP_ERR
:
die
(
_
(
"setting capabilities failed: %s"
),
NULL
,
EC_MISC
);
die
(
_
(
"setting capabilities failed: %s"
),
NULL
,
EC_MISC
);
/* fall through */
case
EVENT_USER_ERR
:
case
EVENT_USER_ERR
:
die
(
_
(
"failed to change user-id to %s: %s"
),
msg
,
EC_MISC
);
die
(
_
(
"failed to change user-id to %s: %s"
),
msg
,
EC_MISC
);
/* fall through */
case
EVENT_GROUP_ERR
:
case
EVENT_GROUP_ERR
:
die
(
_
(
"failed to change group-id to %s: %s"
),
msg
,
EC_MISC
);
die
(
_
(
"failed to change group-id to %s: %s"
),
msg
,
EC_MISC
);
/* fall through */
case
EVENT_PIDFILE
:
case
EVENT_PIDFILE
:
die
(
_
(
"failed to open pidfile %s: %s"
),
msg
,
EC_FILE
);
die
(
_
(
"failed to open pidfile %s: %s"
),
msg
,
EC_FILE
);
/* fall through */
case
EVENT_LOG_ERR
:
case
EVENT_LOG_ERR
:
die
(
_
(
"cannot open log %s: %s"
),
msg
,
EC_FILE
);
die
(
_
(
"cannot open log %s: %s"
),
msg
,
EC_FILE
);
/* fall through */
case
EVENT_LUA_ERR
:
case
EVENT_LUA_ERR
:
die
(
_
(
"failed to load Lua script: %s"
),
msg
,
EC_MISC
);
die
(
_
(
"failed to load Lua script: %s"
),
msg
,
EC_MISC
);
/* fall through */
case
EVENT_TFTP_ERR
:
case
EVENT_TFTP_ERR
:
die
(
_
(
"TFTP directory %s inaccessible: %s"
),
msg
,
EC_FILE
);
die
(
_
(
"TFTP directory %s inaccessible: %s"
),
msg
,
EC_FILE
);
/* fall through */
case
EVENT_TIME_ERR
:
case
EVENT_TIME_ERR
:
die
(
_
(
"cannot create timestamp file %s: %s"
),
msg
,
EC_BADCONF
);
die
(
_
(
"cannot create timestamp file %s: %s"
),
msg
,
EC_BADCONF
);
}
}
...
...
src/option.c
View file @
87e00feb
...
@@ -1163,7 +1163,7 @@ static int parse_dhcp_opt(char *errstr, char *arg, int flags)
...
@@ -1163,7 +1163,7 @@ static int parse_dhcp_opt(char *errstr, char *arg, int flags)
case
'd'
:
case
'd'
:
case
'D'
:
case
'D'
:
fac
*=
24
;
fac
*=
24
;
/* fall though */
/* fall th
r
ough */
case
'h'
:
case
'h'
:
case
'H'
:
case
'H'
:
fac
*=
60
;
fac
*=
60
;
...
@@ -2970,7 +2970,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
...
@@ -2970,7 +2970,7 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
case
'd'
:
case
'd'
:
case
'D'
:
case
'D'
:
fac
*=
24
;
fac
*=
24
;
/* fall though */
/* fall th
r
ough */
case
'h'
:
case
'h'
:
case
'H'
:
case
'H'
:
fac
*=
60
;
fac
*=
60
;
...
...
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