* Fixed more incorrect occurrences of the pid_t == int assumption.

* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36090 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-04-08 17:32:09 +00:00
parent d7754ff079
commit e99d1fd16f
9 changed files with 274 additions and 274 deletions
@@ -51,8 +51,8 @@ int main()
unsigned long page_size = sysconf(_SC_PAGE_SIZE);
shm_size = 2 * page_size;
snprintf(tmpfname, sizeof(tmpfname), "pts_mmap_24_2_%d",
getpid());
snprintf(tmpfname, sizeof(tmpfname), "pts_mmap_24_2_%ld",
(long)getpid());
/* Create shared object */
shm_unlink(tmpfname);
@@ -58,8 +58,8 @@ int main()
int status;
int sig_num;
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_mmap_6_1_%d",
getpid());
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_mmap_6_1_%ld",
(long)getpid());
unlink(tmpfname);
fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
S_IRUSR | S_IWUSR);
@@ -63,8 +63,8 @@ int main()
int status;
int sig_num;
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_mmap_6_2_%d",
getpid());
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_mmap_6_2_%ld",
(long)getpid());
unlink(tmpfname);
fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
S_IRUSR | S_IWUSR);
@@ -60,8 +60,8 @@ int main()
int status;
int sig_num;
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_mmap_6_3_%d",
getpid());
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_mmap_6_3_%ld",
(long)getpid());
unlink(tmpfname);
fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
S_IRUSR | S_IWUSR);
@@ -71,8 +71,8 @@ int main()
len = page_size + 1;
/* Create tmp file */
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_munmap_1_1_%d",
getpid());
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_munmap_1_1_%ld",
(long)getpid());
unlink(tmpfname);
fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
S_IRUSR | S_IWUSR);
@@ -71,8 +71,8 @@ int main()
len = page_size + 1;
/* Create tmp file */
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_munmap_1_1_%d",
getpid());
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_munmap_1_1_%ld",
(long)getpid());
unlink(tmpfname);
fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
S_IRUSR | S_IWUSR);
@@ -54,8 +54,8 @@ int main()
len = page_size + 1;
/* Create tmp file */
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_munmap_1_1_%d",
getpid());
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_munmap_1_1_%ld",
(long)getpid());
unlink(tmpfname);
fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
S_IRUSR | S_IWUSR);
@@ -53,8 +53,8 @@ int main()
char * ch;
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_munmap_4_1_%d",
getpid());
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_munmap_4_1_%ld",
(long)getpid());
unlink(tmpfname);
fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
S_IRUSR | S_IWUSR);
@@ -48,8 +48,8 @@ int main()
len = page_size + 1;
/* Create tmp file */
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_munmap_1_1_%d",
getpid());
snprintf(tmpfname, sizeof(tmpfname), "/tmp/pts_munmap_1_1_%ld",
(long)getpid());
unlink(tmpfname);
fd = open(tmpfname, O_CREAT | O_RDWR | O_EXCL,
S_IRUSR | S_IWUSR);