Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
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
Knot projects
Knot DNS
Commits
9b144258
Commit
9b144258
authored
Jan 17, 2013
by
Daniel Salzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleaning
refs #2137
parent
941e9bff
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
30 deletions
+25
-30
src/utils/common/exec.c
src/utils/common/exec.c
+1
-1
src/utils/common/exec.h
src/utils/common/exec.h
+6
-9
src/utils/common/msg.h
src/utils/common/msg.h
+10
-0
src/utils/common/params.h
src/utils/common/params.h
+1
-1
src/utils/host/host_exec.h
src/utils/host/host_exec.h
+2
-5
src/utils/host/host_params.h
src/utils/host/host_params.h
+1
-6
src/utils/nsupdate/nsupdate_exec.h
src/utils/nsupdate/nsupdate_exec.h
+1
-4
src/utils/nsupdate/nsupdate_params.h
src/utils/nsupdate/nsupdate_params.h
+3
-4
No files found.
src/utils/common/exec.c
View file @
9b144258
...
...
@@ -429,7 +429,7 @@ static bool last_serial_check(const uint32_t serial, const knot_packet_t *reply)
}
}
void
process_query
(
const
params_t
*
params
,
query_t
*
query
)
void
process_query
(
const
params_t
*
params
,
const
query_t
*
query
)
{
float
elapsed
;
bool
id_ok
,
stop
;
...
...
src/utils/common/exec.h
View file @
9b144258
...
...
@@ -18,23 +18,20 @@
*
* \author Daniel Salzman <daniel.salzman@nic.cz>
*
* \brief
* \brief
dig/host executives
*
* \addtogroup
knot_
utils
* \addtogroup utils
* @{
*/
#ifndef _HOST__EXEC_H_
#define _HOST__EXEC_H_
#include <stdbool.h> // bool
#include <stdint.h> // uint16_t
#ifndef _UTILS__EXEC_H_
#define _UTILS__EXEC_H_
#include "utils/common/params.h" // params_t
#include "utils/common/resolv.h" // server_t
void
process_query
(
const
params_t
*
params
,
query_t
*
query
);
void
process_query
(
const
params_t
*
params
,
const
query_t
*
query
);
#endif // _
HOST
__EXEC_H_
#endif // _
UTILS
__EXEC_H_
/*! @} */
src/utils/common/msg.h
View file @
9b144258
...
...
@@ -13,6 +13,16 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*!
* \file msg.h
*
* \author Daniel Salzman <daniel.salzman@nic.cz>
*
* \brief Simple output formatting framework.
*
* \addtogroup utils
* @{
*/
#ifndef _UTILS__MSG_H_
#define _UTILS__MSG_H_
...
...
src/utils/common/params.h
View file @
9b144258
...
...
@@ -18,7 +18,7 @@
*
* \author Daniel Salzman <daniel.salzman@nic.cz>
*
* \brief
Host command line parameters
.
* \brief
Common utils parameters processing
.
*
* \addtogroup utils
* @{
...
...
src/utils/host/host_exec.h
View file @
9b144258
...
...
@@ -18,18 +18,15 @@
*
* \author Daniel Salzman <daniel.salzman@nic.cz>
*
* \brief
* \brief
host executives.
*
* \addtogroup
knot_
utils
* \addtogroup utils
* @{
*/
#ifndef _HOST__HOST_EXEC_H_
#define _HOST__HOST_EXEC_H_
#include <stdbool.h> // bool
#include <stdint.h> // uint16_t
#include "utils/common/params.h" // params_t
int
host_exec
(
const
params_t
*
params
);
...
...
src/utils/host/host_params.h
View file @
9b144258
...
...
@@ -27,14 +27,9 @@
#ifndef _HOST__HOST_PARAMS_H_
#define _HOST__HOST_PARAMS_H_
#include <stdbool.h>
#include <stdint.h>
#include "common/lists.h" // list
#include "utils/common/params.h" // protocol_t
#include "utils/common/params.h" // params_t
int
host_params_parse
(
params_t
*
params
,
int
argc
,
char
*
argv
[]);
void
host_params_clean
(
params_t
*
params
);
#endif // _HOST__HOST_PARAMS_H_
...
...
src/utils/nsupdate/nsupdate_exec.h
View file @
9b144258
...
...
@@ -18,7 +18,7 @@
*
* \author Marek Vavrusa <marek.vavrusa@nic.cz>
*
* \brief
* \brief
*
* \addtogroup knot_utils
* @{
...
...
@@ -27,9 +27,6 @@
#ifndef _NSUPDATE__NSUPDATE_EXEC_H_
#define _NSUPDATE__NSUPDATE_EXEC_H_
#include <stdbool.h> // bool
#include <stdint.h> // uint16_t
#include "utils/nsupdate/nsupdate_params.h"
int
nsupdate_exec
(
params_t
*
params
);
...
...
src/utils/nsupdate/nsupdate_params.h
View file @
9b144258
...
...
@@ -24,10 +24,9 @@
* @{
*/
#ifndef _NSUPDATE_PARAMS_H_
#define _NSUPDATE_PARAMS_H_
#ifndef _NSUPDATE_
_NSUPDATE_
PARAMS_H_
#define _NSUPDATE_
_NSUPDATE_
PARAMS_H_
#include <stdbool.h>
#include <stdint.h>
#include "common/lists.h" // list
...
...
@@ -60,6 +59,6 @@ int nsupdate_params_set_ttl(params_t *params, uint32_t ttl);
int
nsupdate_params_set_origin
(
params_t
*
params
,
const
char
*
origin
);
void
nsupdate_params_clean
(
params_t
*
params
);
#endif // _NSUPDATE_PARAMS_H_
#endif // _NSUPDATE_
_NSUPDATE_
PARAMS_H_
/*! @} */
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