[Nut-upsdev] [nut-commits] svn commit r2853 - in branches/windows_port: drivers include

Arjen de Korte nut+devel at de-korte.org
Wed Jan 26 15:48:31 UTC 2011


Citeren Frederic BOHE <fbohe-guest op alioth.debian.org>:

> Modified: branches/windows_port/include/wincompat.h
> ==============================================================================
> --- branches/windows_port/include/wincompat.h	Wed Jan 26 15:05:16  
> 2011	(r2852)
> +++ branches/windows_port/include/wincompat.h	Wed Jan 26 15:16:09  
> 2011	(r2853)
> @@ -28,6 +28,7 @@
>  #include "common.h"
>
>  #define sleep(n) Sleep(1000 * n)
> +#define strtok_r(a,b,c) strtok(a,b)
>
>  /* Network compatibility */

You probably want to use

> +#define strtok_r(a,b,c) strtok_s(a,b,c)

here. I'm not sure that never tokenize multiple strings at the same  
time (in which case using strtok() would severely break).

Best regards, Arjen
-- 
Please keep list traffic on the list (off-list replies will be rejected)




More information about the Nut-upsdev mailing list