Use named constant.

svn path=/trunk/; revision=28176
This commit is contained in:
Michael Tüxen 2009-04-27 11:52:14 +00:00
parent c620ac8ed6
commit fa8bb35715
1 changed files with 1 additions and 1 deletions

View File

@ -1122,7 +1122,7 @@ pcapng_open(wtap *wth, int *err, gchar **err_info)
wth->data_offset += bytes_read;
/* second block must be an "Interface Description Block" */
if(wblock.type != 1) {
if(wblock.type != BLOCK_TYPE_IDB) {
pcapng_debug1("pcapng_open_new: second block type %u not IDB", wblock.type);
return 0;
}