aboutsummaryrefslogtreecommitdiff
path: root/tools/test
diff options
context:
space:
mode:
authorPeter Holm <pho@FreeBSD.org>2022-02-05 08:51:11 +0000
committerPeter Holm <pho@FreeBSD.org>2022-02-05 08:51:11 +0000
commit28e0b888fe524a7f607b70126ce2d4113d87c1c5 (patch)
tree2e4961e7b7ddfda558994d84a088e00e569eae81 /tools/test
parenta6c20ddd4a9e60aa14c0756fdb9bd72e2921506c (diff)
downloadsrc-28e0b888fe524a7f607b70126ce2d4113d87c1c5.tar.gz
src-28e0b888fe524a7f607b70126ce2d4113d87c1c5.zip
stress2: Fix compiler warnings
Diffstat (limited to 'tools/test')
-rwxr-xr-xtools/test/stress2/misc/callout_reset_on.sh2
-rwxr-xr-xtools/test/stress2/misc/callout_reset_on2.sh2
-rwxr-xr-xtools/test/stress2/misc/datamove3.sh2
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");