[Python-checkins] CVS: python/dist/src/Python thread_beos.h,2.7,2.8

Tim Peters tim_one@users.sourceforge.net
2001年11月28日 14:07:32 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv4133/python/Python
Modified Files:
	thread_beos.h 
Log Message:
More sprintf -> PyOS_snprintf.
Index: thread_beos.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/thread_beos.h,v
retrieving revision 2.7
retrieving revision 2.8
diff -C2 -d -r2.7 -r2.8
*** thread_beos.h	2001年10月16日 21:13:49	2.7
--- thread_beos.h	2001年11月28日 22:07:30	2.8
***************
*** 124,128 ****
 	/* We are so very thread-safe... */
 	this_thread = atomic_add( &thread_count, 1 );
! 	sprintf( name, "python thread (%d)", this_thread );
 
 	tid = spawn_thread( (thread_func)func, name,
--- 124,129 ----
 	/* We are so very thread-safe... */
 	this_thread = atomic_add( &thread_count, 1 );
! 	PyOS_snprintf(name, sizeof(name),
! 		 "python thread (%d)", this_thread );
 
 	tid = spawn_thread( (thread_func)func, name,
***************
*** 223,227 ****
 
 	this_lock = atomic_add( &lock_count, 1 );
! 	sprintf( name, "python lock (%d)", this_lock );
 
 	retval = benaphore_create( name, lock );
--- 224,228 ----
 
 	this_lock = atomic_add( &lock_count, 1 );
! 	PyOS_snprintf(name, sizeof(name), "python lock (%d)", this_lock);
 
 	retval = benaphore_create( name, lock );

AltStyle によって変換されたページ (->オリジナル) /