diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-08-12 19:21:01 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-08-12 19:21:01 +0000 |
commit | bf457f35a818448107aad560336df671755e589d (patch) | |
tree | bfa21efd31af7271177c8e2b3e63ec2c6fd75995 /xpp/fpga_load.c | |
parent | 6c67be02ffa70bc95357fd6b311ea7fbcdb8f6aa (diff) |
xpp: cleanup gcc warnings and one real astribank_tool bug
xpp rev: 7281
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6976 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/fpga_load.c')
-rw-r--r-- | xpp/fpga_load.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xpp/fpga_load.c b/xpp/fpga_load.c index d99e3e7..bc32422 100644 --- a/xpp/fpga_load.c +++ b/xpp/fpga_load.c @@ -210,7 +210,7 @@ struct usb_device *dev_of_path(const char *path) return NULL; } /* Find last '/' */ - if((p = memrchr(path, '/', strlen(path))) == NULL) { + if((p = (const char *)memrchr(path, '/', strlen(path))) == NULL) { ERR("Missing a '/' in %s\n", path); return NULL; } @@ -221,7 +221,7 @@ struct usb_device *dev_of_path(const char *path) return NULL; } /* Search for a '/' before that */ - p = memrchr(path, '/', p - path); + p = (const char *)memrchr(path, '/', p - path); if(p == NULL) p = path; /* Relative path */ else |