[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.156,1.157

Thomas Wouters twouters@users.sourceforge.net
Tue, 24 Jul 2001 04:03:36 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv8141/dist/src/Modules

Modified Files:
	socketmodule.c 
Log Message:

Use HAVE_SNPRINTF, not HAVE_SPRINTF, for checking the availability of
snprintf.



Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.156
retrieving revision 1.157
diff -C2 -d -r1.156 -r1.157
*** socketmodule.c	2001/07/24 06:33:08	1.156
--- socketmodule.c	2001/07/24 11:03:34	1.157
***************
*** 2421,2425 ****
  	if (n == 0)
  		goto fail;
! #ifdef HAVE_SPRINTF
  	snprintf(pbuf, sizeof(pbuf), "%d", port);
  #else
--- 2421,2425 ----
  	if (n == 0)
  		goto fail;
! #ifdef HAVE_SNPRINTF
  	snprintf(pbuf, sizeof(pbuf), "%d", port);
  #else