Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
ntpsec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
NTPsec
ntpsec
Commits
0bf3ff9a
Commit
0bf3ff9a
authored
8 years ago
by
Matt Selsky
Browse files
Options
Downloads
Patches
Plain Diff
Avoid warning about unused parameter 'json' on systems without adjtimex()
parent
48132db5
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ntpfrob/tickadj.c
+2
-1
2 additions, 1 deletion
ntpfrob/tickadj.c
with
2 additions
and
1 deletion
ntpfrob/tickadj.c
+
2
−
1
View file @
0bf3ff9a
...
...
@@ -2,7 +2,7 @@
* tickadj - read, and possibly modify, the kernel `tick' and
* `tickadj' variables', using adjtimex(2). This is
* included only for compatibility with old scripts.
*
and i
ts former support for unsafe /dev/kmem operations
*
I
ts former support for unsafe /dev/kmem operations
* has been removed.
*
* Copyright 2015 by the NTPsec project contributors
...
...
@@ -29,6 +29,7 @@ static struct timex txc;
void
tickadj
(
const
bool
json
,
const
int
newtick
)
{
#ifndef HAVE_ADJTIMEX
UNUSED_ARG
(
json
);
UNUSED_ARG
(
newtick
);
fputs
(
"ntpfrob:
\n
"
,
stderr
);
exit
(
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment