mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 00:06:59 +00:00
getdata: fpos_t is not easy to print correctly
On some systems fpos_t may be a complex object, so printing it is not as easy as ftell() position. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
e9223a852c
commit
c3c3fc6e40
1 changed files with 3 additions and 3 deletions
|
|
@ -249,9 +249,9 @@ void parse_config(int is_include, const char *restrict config_file,
|
|||
break;
|
||||
} else if (argument == ITS_A_RANGE_SECOND_IP && i == 0) {
|
||||
if (!range_p) {
|
||||
fpos_t pos;
|
||||
fgetpos(dhcpd_config, &pos);
|
||||
error(EXIT_FAILURE, 0, "parse_config: parsing failed at position: %Ld", pos);
|
||||
long int pos;
|
||||
pos = ftell(dhcpd_config);
|
||||
error(EXIT_FAILURE, 0, "parse_config: parsing failed at position: %ld", pos);
|
||||
}
|
||||
range_p->last_ip = range_p->first_ip;
|
||||
goto newrange;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue