Use clicon_err() consistently and drop perror()

This commit is contained in:
Philip Prindeville 2023-08-23 13:48:04 -06:00 committed by Olof Hagsand
parent 9d9528d503
commit 959e060995
5 changed files with 65 additions and 59 deletions

View file

@ -669,7 +669,7 @@ restconf_clixon_backend(clicon_handle h,
while (1){
if (clicon_hello_req(h, "cl:restconf", NULL, &id) < 0){
if (errno == ENOENT){
fprintf(stderr, "waiting");
clicon_err(OE_UNIX, errno, "waiting");
sleep(1);
continue;
}