comparison auto/types/sizeof @ 4543:51744fa997c7

Fixed compilation warnings in configuration C tests. Based on a patch by Piotr Sikora.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 15 Mar 2012 20:39:38 +0000
parents d620f497c50f
children 3a99980ac221
comparison
equal deleted inserted replaced
4542:586969d972b9 4543:51744fa997c7
18 18
19 #include <sys/types.h> 19 #include <sys/types.h>
20 #include <sys/time.h> 20 #include <sys/time.h>
21 $NGX_INCLUDE_UNISTD_H 21 $NGX_INCLUDE_UNISTD_H
22 #include <signal.h> 22 #include <signal.h>
23 #include <stdio.h>
23 #include <sys/resource.h> 24 #include <sys/resource.h>
24 $NGX_INCLUDE_INTTYPES_H 25 $NGX_INCLUDE_INTTYPES_H
25 $NGX_INCLUDE_AUTO_CONFIG_H 26 $NGX_INCLUDE_AUTO_CONFIG_H
26 27
27 int main() { 28 int main() {
28 printf("%d", sizeof($ngx_type)); 29 printf("%zu", sizeof($ngx_type));
29 return 0; 30 return 0;
30 } 31 }
31 32
32 END 33 END
33 34