VTY: Fix warning: control reaches end of non-void function

Change-Id: Ie9415afecbcaf12e210fd4f481fcbb1f5ba52c77
This commit is contained in:
Pau Espin Pedrol 2021-02-05 16:01:36 +01:00
parent 0af478ebe1
commit 3bc82b494a
1 changed files with 6 additions and 3 deletions

View File

@ -10,6 +10,8 @@
*/
module Osmocom_VTY_Functions {
import from Misc_Helpers all;
import from TELNETasp_PortType all;
import from Osmocom_Types all;
@ -218,9 +220,10 @@ function f_vty_transceive_match_regexp_retry(TELNETasp_PT pt, charstring cmd, ch
num_attempts := num_attempts - 1;
}
setverdict(fail, "No matching VTY response for regular expression '", regex,
"' after ", num_attempts, " attempts." );
mtc.stop;
Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
log2str("No matching VTY response for regular expression '",
regex, "' after ", num_attempts, " attempts." ));
return "";
}
}