VTY: Fix warning: control reaches end of non-void function
Change-Id: Ie9415afecbcaf12e210fd4f481fcbb1f5ba52c77
This commit is contained in:
parent
0af478ebe1
commit
3bc82b494a
|
@ -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 "";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue