diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-01-30 09:34:48 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-01-30 09:34:48 +0000 |
| commit | 7d96e7c1c0e03ec9e1eb0872134dfa5f9fdaa50e (patch) | |
| tree | f7f295bf0d89f601be7ef9661c704ff173168daf | |
| parent | e2948acd920f17135b3b79c745d0422b6f2db1ec (diff) | |
declarations after statement (C90)
| -rw-r--r-- | applications/jpip/libopenjpip/dec_clientmsg_handler.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/applications/jpip/libopenjpip/dec_clientmsg_handler.c b/applications/jpip/libopenjpip/dec_clientmsg_handler.c index e2b54117..8fdf3109 100644 --- a/applications/jpip/libopenjpip/dec_clientmsg_handler.c +++ b/applications/jpip/libopenjpip/dec_clientmsg_handler.c @@ -57,7 +57,7 @@ void handle_JPIPstreamMSG( SOCKET connected_socket, cachelist_param_t *cachelist metadatalist = gene_metadatalist(); parse_metamsg( msgqueue, *jpipstream, *streamlen, metadatalist); - // cid registration + /* cid registration*/ if( target != NULL){ if((cache = search_cache( target, cachelist))){ if( tid != NULL) @@ -121,6 +121,8 @@ void handle_XMLreqMSG( SOCKET connected_socket, Byte_t *jpipstream, cachelist_pa { char *cid; cache_param_t *cache; + boxcontents_param_t *boxcontents; + Byte_t *xmlstream; cid = receive_string( connected_socket); @@ -131,8 +133,8 @@ void handle_XMLreqMSG( SOCKET connected_socket, Byte_t *jpipstream, cachelist_pa free( cid); - boxcontents_param_t *boxcontents = cache->metadatalist->last->boxcontents; - Byte_t *xmlstream = (Byte_t *)malloc( boxcontents->length); + boxcontents = cache->metadatalist->last->boxcontents; + xmlstream = (Byte_t *)malloc( boxcontents->length); memcpy( xmlstream, jpipstream+boxcontents->offset, boxcontents->length); send_XMLstream( connected_socket, xmlstream, boxcontents->length); free( xmlstream); |
