[Pkg-wmaker-commits] [wmget] 02/06: wmget: Fix -Wpointer-to-int-cast compiler warnings.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Feb 8 15:01:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch upstream
in repository wmget.
commit a60248c277601541aee4660ca707525c1a5fa249
Author: Doug Torrance <dtorrance at piedmont.edu>
Date: Sun Feb 7 00:53:16 2016 -0500
wmget: Fix -Wpointer-to-int-cast compiler warnings.
In particular, use intptr_t instead of int. From the Debian patch [1].
[1] http://sources.debian.net/src/wmget/0.6.0-5/debian/patches/
fix_-Wpointer-to-int-cast.patch/
---
server.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/server.c b/server.c
index 58caf05..eddb386 100644
--- a/server.c
+++ b/server.c
@@ -949,7 +949,7 @@ static int init_grim_reaper (void)
static dockapp_rv_t on_click_pbar (
void *cbdata, int x_unused, int y_unused)
{
- int which = (int)cbdata;
+ int which = (intptr_t)cbdata;
(void)x_unused;
(void)y_unused;
@@ -969,7 +969,7 @@ static dockapp_rv_t on_click_pbar (
static dockapp_rv_t on_click_stop (
void *cbdata, int x_unused, int y_unused)
{
- int which = (int)cbdata;
+ int which = (intptr_t)cbdata;
(void)x_unused;
(void)y_unused;
@@ -1047,7 +1047,7 @@ static dockapp_rv_t on_middle_click (void *cbdata, int x, int y)
*/
int server (int argc, char **argv)
{
- int i;
+ intptr_t i;
config_server (argc, argv, &config);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmget.git
More information about the Pkg-wmaker-commits
mailing list