diff options
| author | 2008-10-18 01:24:31 +0200 | |
|---|---|---|
| committer | 2008-10-28 22:56:09 -0700 | |
| commit | d080bb3d83236eeb58b06dab987f4e7ed18030e0 (patch) | |
| tree | cbfbca619bb128435abd2a4df91d6a6df6419980 /src/dispatch.c | |
| parent | Makes extra sure strings are not overrun. (diff) | |
Address some compiler warnings
7x unused variable, 1x assignment used as truth value, 1x pointer signedness
Signed-off-by: Dan Dennedy <dan@dennedy.org>
Diffstat (limited to '')
| -rw-r--r-- | src/dispatch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dispatch.c b/src/dispatch.c index 567fbbc..17e8af8 100644 --- a/src/dispatch.c +++ b/src/dispatch.c @@ -71,7 +71,7 @@ void raw1394_destroy_handle(raw1394handle_t handle) raw1394handle_t raw1394_new_handle_on_port(int port) { ieee1394handle_t ieee1394_handle = ieee1394_new_handle_on_port(port); - fw_handle_t fw_handle = NULL; + fw_handle_t fw_handle; raw1394handle_t handle = NULL; if (ieee1394_handle) { @@ -82,7 +82,7 @@ raw1394handle_t raw1394_new_handle_on_port(int port) } else ieee1394_destroy_handle(ieee1394_handle); } - else if (fw_handle = fw_new_handle_on_port(port)) { + else if ((fw_handle = fw_new_handle_on_port(port))) { handle = (raw1394handle_t) malloc(sizeof(struct raw1394_handle)); if (handle) { handle->is_fw = 1; |
