| 80 | } |
| 81 | |
| 82 | static void setMOTDCache(const char *sz) |
| 83 | { |
| 84 | FILE *pf = fopen(szMotdCachePath(), "wb"); |
| 85 | if (pf == NULL) |
| 86 | return; |
| 87 | size_t celem = fwrite(sz, strlen(sz), 1, pf); |
| 88 | (void)celem; // best effort |
| 89 | fclose(pf); |
| 90 | } |
| 91 | |
| 92 | extern "C" char *fetchMOTD(int cache, int enable_motd) |
| 93 | { |
no test coverage detected