[Nut-upsdev] [nut-commits] svn commit r3226 - trunk/tools/nut-scanner

Frédéric Bohé fredericbohe at eaton.com
Wed Sep 14 12:55:18 UTC 2011


On Wed, 2011-09-14 at 12:25 +0000, Charles Lepple wrote:
> Author: clepple-guest
> Date: Wed Sep 14 12:25:03 2011
> New Revision: 3226
> URL: http://trac.networkupstools.org/projects/nut/changeset/3226
> 
> Log:
> Include <string.h> for nut-scanner
> 
> Modified:
>    trunk/tools/nut-scanner/scan_snmp.c
>    trunk/tools/nut-scanner/scan_usb.c
> 
> Modified: trunk/tools/nut-scanner/scan_snmp.c
> ==============================================================================
> --- trunk/tools/nut-scanner/scan_snmp.c	Wed Sep 14 12:24:58 2011	(r3225)
> +++ trunk/tools/nut-scanner/scan_snmp.c	Wed Sep 14 12:25:03 2011	(r3226)
> @@ -26,6 +26,7 @@
>  #include <netinet/in.h>
>  #include <arpa/inet.h>
>  #include <stdio.h>
> +#include <string.h>
>  
>  /* workaround for buggy Net-SNMP config
>   * from drivers/snmp-ups.h */

If it's for strndup, I fear it will not be enough. AFAIK strndup is not
in standard C library on our Solaris version. I have just made some
changes to avoid calling strndup, not committed yet.

Fred




> 
> Modified: trunk/tools/nut-scanner/scan_usb.c
> ==============================================================================
> --- trunk/tools/nut-scanner/scan_usb.c	Wed Sep 14 12:24:58 2011	(r3225)
> +++ trunk/tools/nut-scanner/scan_usb.c	Wed Sep 14 12:25:03 2011	(r3226)
> @@ -22,6 +22,7 @@
>  #include "upsclient.h"
>  #include "nutscan-usb.h"
>  #include <stdio.h>
> +#include <string.h>
>  #include "nutscan-device.h"
>  
>  static char* is_usb_device_supported(usb_device_id_t *usb_device_id_list,
> 
> _______________________________________________
> nut-commits mailing list
> nut-commits at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-commits

-- 
Team Open Source Eaton - http://powerquality.eaton.com

--------------------------------------------------------------------------



More information about the Nut-upsdev mailing list