| 150 | } |
| 151 | |
| 152 | static unsigned int |
| 153 | read_uint_from_fd(int fd) |
| 154 | { |
| 155 | int result{}; |
| 156 | if (fd) { |
| 157 | TextBuffer buffer(16); |
| 158 | buffer.slurp(fd); |
| 159 | result = std::atoi(buffer.bufPtr()); |
| 160 | } |
| 161 | return static_cast<unsigned int>(result); |
| 162 | } |
no test coverage detected