termux-packages/packages/yuma123/netconf-src-yangrpc-example-yangrpc-parse-example.c.patch

12 lines
757 B
Diff
Raw Normal View History

2022-04-04 13:53:38 +02:00
--- a/netconf/src/yangrpc/example/yangrpc-parse-example.c
+++ b/netconf/src/yangrpc/example/yangrpc-parse-example.c
@@ -22,7 +22,7 @@
res = yangrpc_init(NULL);
assert(res==NO_ERR);
- res = yangrpc_connect("localhost"/*server*/, 830/*port*/, "vladimir"/*user*/,"mysecretpass"/*password*/,"/home/vladimir/.ssh/id_rsa.pub"/*public_key*/, "/home/vladimir/.ssh/id_rsa"/*private_key*/, NULL, &yangrpc_cb_ptr);
+ res = yangrpc_connect("localhost"/*server*/, 830/*port*/, "vladimir"/*user*/,"mysecretpass"/*password*/,"@TERMUX_HOME@/.ssh/id_rsa.pub"/*public_key*/, "@TERMUX_HOME@/.ssh/id_rsa"/*private_key*/, NULL, &yangrpc_cb_ptr);
assert(res==NO_ERR);
res = yangrpc_parse_cli(yangrpc_cb_ptr, "xget /interfaces-state", &request_val);