mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Use SCN* constants when reading into sized integer types
This commit is contained in:
parent
ff4d1a4121
commit
1992a55798
3 changed files with 9 additions and 8 deletions
|
@ -48,7 +48,7 @@ DNS_Mapping::DNS_Mapping(FILE* f) {
|
|||
int failed_local;
|
||||
int num_addrs;
|
||||
|
||||
if ( sscanf(buf, "%lf %d %512s %d %512s %d %d %" PRIu32, &creation_time, &is_req_host, req_buf, &failed_local,
|
||||
if ( sscanf(buf, "%lf %d %512s %d %512s %d %d %" SCNu32, &creation_time, &is_req_host, req_buf, &failed_local,
|
||||
name_buf, &req_type, &num_addrs, &req_ttl) != 8 ) {
|
||||
no_mapping = true;
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue