summaryrefslogtreecommitdiff
path: root/apps/examples/poll/poll_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/poll/poll_main.c')
-rw-r--r--apps/examples/poll/poll_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/examples/poll/poll_main.c b/apps/examples/poll/poll_main.c
index 11479e1a3..0f61f2f25 100644
--- a/apps/examples/poll/poll_main.c
+++ b/apps/examples/poll/poll_main.c
@@ -199,7 +199,8 @@ int poll_main(int argc, char *argv[])
goto errout;
}
- printf("\npoll_main: Sent '%s' (%d bytes)\n", buffer, nbytes);
+ printf("\npoll_main: Sent '%s' (%ld bytes)\n",
+ buffer, (long)nbytes);
fflush(stdout);
/* Wait awhile. This delay should be long enough that the