| 1032 | } |
| 1033 | |
| 1034 | staticfn boolean |
| 1035 | cnf_line_LIVELOG(char *bufp) |
| 1036 | { |
| 1037 | /* using 0 for base accepts "dddd" as decimal provided that first 'd' |
| 1038 | isn't '0', "0xhhhh" as hexadecimal, and "0oooo" as octal; ignores |
| 1039 | any trailing junk, including '8' or '9' for leading '0' octal */ |
| 1040 | long L = strtol(bufp, NULL, 0); |
| 1041 | |
| 1042 | if (L < 0L || L > 0xffffL) { |
| 1043 | config_error_add("Illegal value for LIVELOG" |
| 1044 | " (must be between 0 and 0xFFFF)."); |
| 1045 | return 0; |
| 1046 | } |
| 1047 | sysopt.livelog = L; |
| 1048 | return TRUE; |
| 1049 | } |
| 1050 | |
| 1051 | staticfn boolean |
| 1052 | cnf_line_PANICTRACE_LIBC(char *bufp) |
nothing calls this directly
no test coverage detected