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).
Added test for sprint_realloc_variable with -OQ cmdline argument.
Merge branch 'V5-4-patches' into V5-5-patches

* V5-4-patches:
  Added checks for printing variables with wrong types.
Merge branch 'V5-5-patches' into V5-6-patches

* V5-5-patches:
  Added checks for printing variables with wrong types.
Merge branch 'V5-6-patches' into V5-7-patches

* V5-6-patches:
  Added test for sprint_realloc_variable with -OQ cmdline argument.
  Added checks for printing variables with wrong types.
Merge branch 'V5-7-patches'

* V5-7-patches:
  Added test for sprint_realloc_variable with -OQ cmdline argument.
  Added checks for printing variables with wrong types.

Conflicts:
	snmplib/mib.c
Add a debug message when skipping a key
Merge branch 'V5-7-patches'

* V5-7-patches:
  Add a debug message when skipping a key
Merge remote-tracking branch 'origin/V5-7-patches' into V5-7-patches
Merge remote-tracking branch 'origin/master'
Empty initializers are (sadly) not part of C.
Stop using them.
Merge branch 'V5-7-patches'

* V5-7-patches:
  Empty initializers are (sadly) not part of C. Stop using them.
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.
Merge branch 'V5-5-patches' into V5-6-patches

* V5-5-patches:
  Fix commit 7f4a7b891332899cea26e95be0337aae01648742: dont mix code and declarations.
Merge branch 'V5-6-patches' into V5-7-patches

* V5-6-patches:
  Fix commit 7f4a7b891332899cea26e95be0337aae01648742: dont mix code and declarations.
Merge branch 'V5-7-patches'

* V5-7-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.