| 180 | |
| 181 | |
| 182 | void SRVRMGR_msg_get( USHORT number, TEXT * msg) |
| 183 | { |
| 184 | /************************************** |
| 185 | * |
| 186 | * S R V R M G R _ m s g _ g e t |
| 187 | * |
| 188 | ************************************** |
| 189 | * |
| 190 | * Functional description |
| 191 | * Retrieve a message from the error file |
| 192 | * |
| 193 | **************************************/ |
| 194 | |
| 195 | /* The following line will be the future of this function |
| 196 | |
| 197 | static const SafeArg arg; |
| 198 | fb_msg_format (0, MSG_FAC, number, MSG_LEN, msg, arg); |
| 199 | */ |
| 200 | |
| 201 | const char* rs = 0; |
| 202 | |
| 203 | switch (number) |
| 204 | { |
| 205 | case MSG_PROMPT: |
| 206 | rs = "FBMGR>"; |
| 207 | break; |
| 208 | case MSG_OPSPEC: |
| 209 | rs = "operation already specified"; |
| 210 | break; |
| 211 | case MSG_NOOPSPEC: |
| 212 | rs = "no operation specified"; |
| 213 | break; |
| 214 | case MSG_INVSWOP: |
| 215 | rs = "illegal operation/switch combination"; |
| 216 | break; |
| 217 | case MSG_SHUTDOWN: |
| 218 | rs = "warning: shutdown is in progress"; |
| 219 | break; |
| 220 | case MSG_CANTCHANGE: |
| 221 | rs = "can not change host, password or user"; |
| 222 | break; |
| 223 | case MSG_VERSION: |
| 224 | rs = "fbmgr version"; |
| 225 | break; |
| 226 | case MSG_INVSW: |
| 227 | rs = "invalid switch"; |
| 228 | break; |
| 229 | case MSG_AMBSW: |
| 230 | rs = "ambiguous switch"; |
| 231 | break; |
| 232 | case MSG_INVSWSW: |
| 233 | rs = "invalid switch combination"; |
| 234 | break; |
| 235 | case MSG_WARNPASS: |
| 236 | rs = "warning: only 8 significant bytes of password used"; |
| 237 | break; |
| 238 | case MSG_INVUSER: |
| 239 | rs = "invalid user (only 32 bytes allowed"; |
no outgoing calls
no test coverage detected