aboutsummaryrefslogtreecommitdiff
path: root/pthreads/tests/sizes.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-07-18 10:33:05 +0200
committermarha <marha@users.sourceforge.net>2011-07-18 10:33:05 +0200
commit88101146f2ec7d53ffb793e365f05097ffd35fd3 (patch)
treedb77eef572a00c62c8d9485c4786f682e20a2fd0 /pthreads/tests/sizes.c
parent772373ccc8da2b2019555228f4972cc0c5a885a4 (diff)
downloadvcxsrv-88101146f2ec7d53ffb793e365f05097ffd35fd3.tar.gz
vcxsrv-88101146f2ec7d53ffb793e365f05097ffd35fd3.tar.bz2
vcxsrv-88101146f2ec7d53ffb793e365f05097ffd35fd3.zip
cvs version of pthreads
Diffstat (limited to 'pthreads/tests/sizes.c')
-rw-r--r--pthreads/tests/sizes.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/pthreads/tests/sizes.c b/pthreads/tests/sizes.c
index 73c726171..554d0e843 100644
--- a/pthreads/tests/sizes.c
+++ b/pthreads/tests/sizes.c
@@ -8,24 +8,24 @@ main()
{
printf("Sizes of pthreads-win32 structs\n");
printf("-------------------------------\n");
- printf("%30s %4d\n", "pthread_t", sizeof(pthread_t));
- printf("%30s %4d\n", "ptw32_thread_t", sizeof(ptw32_thread_t));
- printf("%30s %4d\n", "pthread_attr_t_", sizeof(struct pthread_attr_t_));
- printf("%30s %4d\n", "sem_t_", sizeof(struct sem_t_));
- printf("%30s %4d\n", "pthread_mutex_t_", sizeof(struct pthread_mutex_t_));
- printf("%30s %4d\n", "pthread_mutexattr_t_", sizeof(struct pthread_mutexattr_t_));
- printf("%30s %4d\n", "pthread_spinlock_t_", sizeof(struct pthread_spinlock_t_));
- printf("%30s %4d\n", "pthread_barrier_t_", sizeof(struct pthread_barrier_t_));
- printf("%30s %4d\n", "pthread_barrierattr_t_", sizeof(struct pthread_barrierattr_t_));
- printf("%30s %4d\n", "pthread_key_t_", sizeof(struct pthread_key_t_));
- printf("%30s %4d\n", "pthread_cond_t_", sizeof(struct pthread_cond_t_));
- printf("%30s %4d\n", "pthread_condattr_t_", sizeof(struct pthread_condattr_t_));
- printf("%30s %4d\n", "pthread_rwlock_t_", sizeof(struct pthread_rwlock_t_));
- printf("%30s %4d\n", "pthread_rwlockattr_t_", sizeof(struct pthread_rwlockattr_t_));
- printf("%30s %4d\n", "pthread_once_t_", sizeof(struct pthread_once_t_));
- printf("%30s %4d\n", "ptw32_cleanup_t", sizeof(struct ptw32_cleanup_t));
- printf("%30s %4d\n", "ptw32_mcs_node_t_", sizeof(struct ptw32_mcs_node_t_));
- printf("%30s %4d\n", "sched_param", sizeof(struct sched_param));
+ printf("%30s %4d\n", "pthread_t", (int)sizeof(pthread_t));
+ printf("%30s %4d\n", "ptw32_thread_t", (int)sizeof(ptw32_thread_t));
+ printf("%30s %4d\n", "pthread_attr_t_", (int)sizeof(struct pthread_attr_t_));
+ printf("%30s %4d\n", "sem_t_", (int)sizeof(struct sem_t_));
+ printf("%30s %4d\n", "pthread_mutex_t_", (int)sizeof(struct pthread_mutex_t_));
+ printf("%30s %4d\n", "pthread_mutexattr_t_", (int)sizeof(struct pthread_mutexattr_t_));
+ printf("%30s %4d\n", "pthread_spinlock_t_", (int)sizeof(struct pthread_spinlock_t_));
+ printf("%30s %4d\n", "pthread_barrier_t_", (int)sizeof(struct pthread_barrier_t_));
+ printf("%30s %4d\n", "pthread_barrierattr_t_", (int)sizeof(struct pthread_barrierattr_t_));
+ printf("%30s %4d\n", "pthread_key_t_", (int)sizeof(struct pthread_key_t_));
+ printf("%30s %4d\n", "pthread_cond_t_", (int)sizeof(struct pthread_cond_t_));
+ printf("%30s %4d\n", "pthread_condattr_t_", (int)sizeof(struct pthread_condattr_t_));
+ printf("%30s %4d\n", "pthread_rwlock_t_", (int)sizeof(struct pthread_rwlock_t_));
+ printf("%30s %4d\n", "pthread_rwlockattr_t_", (int)sizeof(struct pthread_rwlockattr_t_));
+ printf("%30s %4d\n", "pthread_once_t_", (int)sizeof(struct pthread_once_t_));
+ printf("%30s %4d\n", "ptw32_cleanup_t", (int)sizeof(struct ptw32_cleanup_t));
+ printf("%30s %4d\n", "ptw32_mcs_node_t_", (int)sizeof(struct ptw32_mcs_node_t_));
+ printf("%30s %4d\n", "sched_param", (int)sizeof(struct sched_param));
printf("-------------------------------\n");
return 0;