* @brief convert the env vars in howto_names into a howto mask */
| 90 | * @brief convert the env vars in howto_names into a howto mask |
| 91 | */ |
| 92 | int |
| 93 | boot_env_to_howto(void) |
| 94 | { |
| 95 | int i, howto; |
| 96 | char *val; |
| 97 | |
| 98 | for (howto = 0, i = 0; howto_names[i].ev != NULL; i++) { |
| 99 | val = GETENV(howto_names[i].ev); |
| 100 | if (val != NULL && strcasecmp(val, "no") != 0) |
| 101 | howto |= howto_names[i].mask; |
| 102 | FREE(val); |
| 103 | } |
| 104 | return (howto); |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * @brief Set env vars from howto_names based on howto passed in |
no test coverage detected