projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Miscellaneous minor code cleanup for MRW's review comments
[trust_router.git]
/
mon
/
mon_req_encode.c
diff --git
a/mon/mon_req_encode.c
b/mon/mon_req_encode.c
index
5bcf8b2
..
12e408c
100644
(file)
--- a/
mon/mon_req_encode.c
+++ b/
mon/mon_req_encode.c
@@
-39,7
+39,7
@@
#include <mon_internal.h>
#include <mon_internal.h>
-/
/ Monitoring request encoders
+/
* Monitoring request encoders */
/**
* Encode options array as a JSON array
/**
* Encode options array as a JSON array
@@
-54,7
+54,7
@@
* @param opts array of options
* @return reference to a JSON array of options
*/
* @param opts array of options
* @return reference to a JSON array of options
*/
-static json_t *mon_opts_
de
code(GArray *opts)
+static json_t *mon_opts_
en
code(GArray *opts)
{
json_t *array_json = json_array(); // the array of options
json_t *opt_json = NULL; // individual option JSON object
{
json_t *array_json = json_array(); // the array of options
json_t *opt_json = NULL; // individual option JSON object
@@
-142,7
+142,7
@@
json_t *mon_req_encode(MON_REQ *req)
/* If we have options, add them to the object */
if (req->options->len > 0) {
/* If we have options, add them to the object */
if (req->options->len > 0) {
- opts_json = mon_opts_
de
code(req->options);
+ opts_json = mon_opts_
en
code(req->options);
if (opts_json == NULL) {
json_decref(req_json);
return NULL;
if (opts_json == NULL) {
json_decref(req_json);
return NULL;