Remove extra lines
This commit is contained in:
parent
3332dfef20
commit
69eaf98913
72 changed files with 1 additions and 98 deletions
|
|
@ -35,7 +35,6 @@
|
|||
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _BACKEND_SOCKET_H_
|
||||
#define _BACKEND_SOCKET_H_
|
||||
|
||||
|
|
|
|||
|
|
@ -113,7 +113,6 @@ running |--------+------------> RUNNING
|
|||
parse validate OK / commit
|
||||
startup -------+--+-------+------------+
|
||||
|
||||
|
||||
INVALID (requires manual edit of candidate)
|
||||
failsafe ----------------------+
|
||||
reset \ commit
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@
|
|||
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _BACKEND_STARTUP_H_
|
||||
#define _BACKEND_STARTUP_H_
|
||||
|
||||
|
|
|
|||
|
|
@ -60,4 +60,3 @@ extern "C" {
|
|||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@
|
|||
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _CLIXON_BACKEND_COMMIT_H_
|
||||
#define _CLIXON_BACKEND_COMMIT_H_
|
||||
|
||||
|
|
|
|||
|
|
@ -234,4 +234,3 @@ backend_client_print(clixon_handle h,
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@ int transaction_print(FILE *f, transaction_data th);
|
|||
int transaction_dbg(clixon_handle h, int dbglevel, transaction_data th, const char *msg);
|
||||
int transaction_log(clixon_handle h, transaction_data th, int level, const char *op);
|
||||
|
||||
|
||||
/* Pagination callbacks
|
||||
* @see pagination_data_t internal structure
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -72,7 +72,6 @@ static const map_str2int list_kw_map[] = {
|
|||
{NULL, -1}
|
||||
};
|
||||
|
||||
|
||||
static int
|
||||
autocli_str2op(char *str)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -830,7 +830,6 @@ cli_start_program(clixon_handle h,
|
|||
size_t bufsize = 0;
|
||||
struct passwd pw, *pwresult = NULL;
|
||||
|
||||
|
||||
/* Check parameters */
|
||||
if (cvec_len(argv) == 0){
|
||||
clixon_err(OE_PLUGIN, EINVAL, "Can not find argument");
|
||||
|
|
|
|||
|
|
@ -796,4 +796,3 @@ cli_syntax_mode(clixon_handle h)
|
|||
return NULL;
|
||||
return cligen_ph_name_get(ph);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@
|
|||
/* clicon generic callback pointer */
|
||||
typedef void (clicon_callback_t)(clixon_handle h);
|
||||
|
||||
|
||||
void *clixon_str2fn(char *name, void *handle, char **error);
|
||||
|
||||
int clicon_parse(clixon_handle h, char *cmd, char **mode, cligen_result *result, int *evalres);
|
||||
|
|
|
|||
|
|
@ -70,4 +70,3 @@ int plugin_exit(clixon_handle h);
|
|||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -50,5 +50,4 @@ int netconf_xpath(cxobj *xsearch,
|
|||
cbuf *xf, cbuf *xf_err,
|
||||
cxobj *xt);
|
||||
|
||||
|
||||
#endif /* _CLIXON_NETCONF_H_ */
|
||||
|
|
|
|||
|
|
@ -211,4 +211,3 @@ xml_filter(cxobj *xfilter,
|
|||
&remove_s);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -368,7 +368,6 @@ field_values : field_vchars
|
|||
| { $$ = NULL; _PARSE_DEBUG("field-values -> "); }
|
||||
;
|
||||
|
||||
|
||||
field_vchars : field_vchars RWS VCHARS
|
||||
{
|
||||
if (($$ = clixon_string_del_join($1, " ", $3)) == NULL) YYABORT;
|
||||
|
|
@ -393,4 +392,3 @@ ows : RWS
|
|||
;
|
||||
|
||||
%%
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@
|
|||
* Limited static http data service embedded in restconf code
|
||||
*/
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "clixon_config.h" /* generated by config & autoconf */
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -82,4 +82,3 @@ int restconf_param_set(clixon_handle h, const char *param, char *val);
|
|||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@
|
|||
#include "restconf_lib.h"
|
||||
#include "restconf_api.h" /* Virtual api */
|
||||
|
||||
|
||||
/*! HTTP headers done, if there is a message body coming next
|
||||
*
|
||||
* @param[in] req Fastcgi request handle
|
||||
|
|
|
|||
|
|
@ -204,4 +204,3 @@ restconf_get_indata(void *req0)
|
|||
done:
|
||||
return cb;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,9 +34,7 @@
|
|||
*
|
||||
* Return errors
|
||||
* @see RFC 7231 Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
|
||||
|
||||
|
||||
* "api-path" is "URI-encoded path expression" definition in RFC8040 3.5.3
|
||||
* "api-path" is "URI-encoded path expression" definition in RFC8040 3.5.3
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
|
|
|
|||
|
|
@ -51,5 +51,4 @@ int restconf_notimplemented(clixon_handle h, void *req, int pretty, restconf_med
|
|||
int api_return_err(clixon_handle h, void *req, cxobj *xerr, int pretty, restconf_media media, int code0);
|
||||
int api_return_err0(clixon_handle h, void *req, cxobj *xerr, int pretty, restconf_media media, int code0);
|
||||
|
||||
|
||||
#endif /* _RESTCONF_ERR_H_ */
|
||||
|
|
|
|||
|
|
@ -930,4 +930,3 @@ restconf_socket_init(const char *netns0,
|
|||
clixon_debug(CLIXON_DBG_RESTCONF, "retval:%d", retval);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -427,7 +427,6 @@ restconf_ssl_context_configure(clixon_handle h,
|
|||
SSL_CTX_set_verify_depth(ctx, VERIFY_DEPTH+1);
|
||||
}
|
||||
|
||||
|
||||
X509_STORE_set_flags(SSL_CTX_get_cert_store(ctx), 0);
|
||||
|
||||
SSL_CTX_set_session_id_context(ctx, (void *)&session_id_context, sizeof(session_id_context));
|
||||
|
|
|
|||
|
|
@ -824,4 +824,3 @@ api_data_delete(clixon_handle h,
|
|||
clixon_debug(CLIXON_DBG_RESTCONF, "retval:%d", retval);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -795,4 +795,3 @@ api_operations_get(clixon_handle h,
|
|||
xml_free(xt);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@
|
|||
* Restconf YANG PATCH implementation (RFC8072)
|
||||
*/
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "clixon_config.h" /* generated by config & autoconf */
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@
|
|||
* Restconf YANG PATCH implementation (RFC8072)
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _RESTCONF_METHODS_PATCH_H_
|
||||
#define _RESTCONF_METHODS_PATCH_H_
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@
|
|||
* From RFC 8040 Section 4.4. POST
|
||||
*/
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "clixon_config.h" /* generated by config & autoconf */
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1870,4 +1870,3 @@ restconf_socket_extract(clixon_handle h,
|
|||
free(reason);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -189,8 +189,6 @@ int restconf_callhome_timer(restconf_socket *rsock, int status);
|
|||
int restconf_socket_extract(clixon_handle h, cxobj *xs, cvec *nsc, restconf_socket *rsock,
|
||||
char **namespace, char **address, char **addrtype, uint16_t *port);
|
||||
|
||||
|
||||
|
||||
#endif /* _RESTCONF_NATIVE_H_ */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@
|
|||
* Generic restconf root handlers eg for /restconf /.well-known, etc
|
||||
*/
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "clixon_config.h" /* generated by config & autoconf */
|
||||
#endif
|
||||
|
|
@ -641,4 +640,3 @@ api_root_restconf(clixon_handle h,
|
|||
free(path);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1149,8 +1149,6 @@ snmp_table_set(clixon_handle h,
|
|||
goto done;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*! Use a cache for getnext tables instead of an RPC to the backend every time
|
||||
*
|
||||
* The cache works as follows:
|
||||
|
|
|
|||
|
|
@ -59,4 +59,3 @@ int clixon_snmp_table_exit(clixon_handle h);
|
|||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,6 @@ static const map_str2int snmp_type_map[] = {
|
|||
{NULL, -1}
|
||||
};
|
||||
|
||||
|
||||
/* Map between clixon "orig" resolved type and ASN.1 types.
|
||||
*/
|
||||
static const map_str2int snmp_orig_map[] = {
|
||||
|
|
@ -157,7 +156,6 @@ static const map_str2str yang_snmp_types[] = {
|
|||
{ NULL, NULL} /* if not found */
|
||||
};
|
||||
|
||||
|
||||
/*! A function that checks that all subtypes of the union are the same
|
||||
*
|
||||
* @param[in] ytype Yang resolved type (a union in this case)
|
||||
|
|
@ -515,7 +513,6 @@ yangext_is_oid_exist(yang_stmt *yn)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/*! Duplicate clixon snmp handler struct
|
||||
*
|
||||
* Use signature of libnetsnmp data_clone field of netsnmp_mib_handler in agent_handler.h
|
||||
|
|
|
|||
|
|
@ -119,4 +119,3 @@ int clixon_snmp_api_oid_find(oid *oid1, size_t oidlen);
|
|||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -52,4 +52,3 @@ int clixon_snmp_traverse_mibyangs(clixon_handle h);
|
|||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue