Added checks for printing variables with wrong types.

When -OQ command line argument is used, variable formatter preffers the type
of the varible parsed from a MIB file instead of checking type of the variable
as parsed from SNMP message.

This can lead to crashes when incoming packets contains a variable with
NULL type, while the MIB says the variable should be non-NULL, like Integer.
The formatter then tries to interpret the NULL (from packet) as Integer (from
MIB file).
Merge branch 'V5-4-patches' into V5-5-patches

* V5-4-patches:
  Added checks for printing variables with wrong types.
Fix commit 7f4a7b891332899cea26e95be0337aae01648742: dont mix code and declarations.
Merge branch 'V5-4-patches' into V5-5-patches

* V5-4-patches:
  Fix commit 7f4a7b891332899cea26e95be0337aae01648742: dont mix code and declarations.
Ensure that fdset structure is resized sufficiently
to accomodate the specified socket ID.
Problem reported by Shiyalei.

git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@19066 06827809-a52a-0410-b366-d66718629ded
Fixed a Solaris-specific compiler warning.

git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@18029 06827809-a52a-0410-b366-d66718629ded
When enlarging a large_fd_set, use FD_ZERO if possible

The most common case of creating a large_fd_set on UNIX
is to create it with size zero, and then immediately enlarge
it to size FD_SETSIZE.  Instead of looping and calling
FD_CLR(), we can optimize this common case with the OS's
FD_ZERO.
CHANGES: BUG: 2568: Avoid that file descriptors above FD_SETSIZE trigger abort()
remove bad assert check
Merge branch 'V5-4-patches' into V5-5-patches

* V5-4-patches:
  remove bad assert check