diff options
author | Peter Holm <pho@FreeBSD.org> | 2022-02-05 08:51:11 +0000 |
---|---|---|
committer | Peter Holm <pho@FreeBSD.org> | 2022-02-05 08:51:11 +0000 |
commit | 28e0b888fe524a7f607b70126ce2d4113d87c1c5 (patch) | |
tree | 2e4961e7b7ddfda558994d84a088e00e569eae81 | |
parent | a6c20ddd4a9e60aa14c0756fdb9bd72e2921506c (diff) | |
download | src-28e0b888fe524a7f607b70126ce2d4113d87c1c5.tar.gz src-28e0b888fe524a7f607b70126ce2d4113d87c1c5.zip |
stress2: Fix compiler warnings
-rwxr-xr-x | tools/test/stress2/misc/callout_reset_on.sh | 2 | ||||
-rwxr-xr-x | tools/test/stress2/misc/callout_reset_on2.sh | 2 | ||||
-rwxr-xr-x | tools/test/stress2/misc/datamove3.sh | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/tools/test/stress2/misc/callout_reset_on.sh b/tools/test/stress2/misc/callout_reset_on.sh index cdffc0dd67f7..bafeeea270c7 100755 --- a/tools/test/stress2/misc/callout_reset_on.sh +++ b/tools/test/stress2/misc/callout_reset_on.sh @@ -230,10 +230,8 @@ writer(void) { struct hostent *hostent; int i, r; char line[1024], ack[80];; - pid_t ppid; setproctitle("writer - init"); - ppid = getppid(); signal(SIGUSR1, handler); alarm(60); on = 1; diff --git a/tools/test/stress2/misc/callout_reset_on2.sh b/tools/test/stress2/misc/callout_reset_on2.sh index 270aeb95aa97..1a54097ff4ba 100755 --- a/tools/test/stress2/misc/callout_reset_on2.sh +++ b/tools/test/stress2/misc/callout_reset_on2.sh @@ -201,11 +201,9 @@ writer(void) { struct hostent *hostent; int i, r; char line[1024], ack[80];; - pid_t ppid; setproctitle("writer - init"); share[SYNC] = 1; - ppid = getppid(); signal(SIGUSR1, handler); signal(SIGALRM, ahandler); alarm(60); diff --git a/tools/test/stress2/misc/datamove3.sh b/tools/test/stress2/misc/datamove3.sh index 47a1cbce4c95..19beffc00655 100755 --- a/tools/test/stress2/misc/datamove3.sh +++ b/tools/test/stress2/misc/datamove3.sh @@ -161,7 +161,7 @@ mapBuffer(void *ar) char *buffer; int i; - i = (int )ar; + i = (intptr_t)ar; addr = mmap(NULL, pagesize * 2, PROT_READ | PROT_WRITE, MAP_SHARED, a[i].fd1, 0); if (addr == MAP_FAILED) { err(1, "Mmap failed"); |