summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2012-01-30 08:57:26 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2012-01-30 08:57:26 +0000
commitaa00142949099b2e9195e7977f191b34e1d79902 (patch)
tree7e33728f7915e417b42d6f063a9acad6c0822782
parent87b05f2885e7bf16e2d8a1e5ba5ccfb62f90d57d (diff)
Fix compilation of C code. Remove warnings.
-rw-r--r--applications/jpip/libopenjpip/faixbox_manager.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/applications/jpip/libopenjpip/faixbox_manager.c b/applications/jpip/libopenjpip/faixbox_manager.c
index dc943dce..5c168001 100644
--- a/applications/jpip/libopenjpip/faixbox_manager.c
+++ b/applications/jpip/libopenjpip/faixbox_manager.c
@@ -39,7 +39,7 @@
#define FCGI_stdout stdout
#define FCGI_stderr stderr
#define logstream stderr
-#endif //SERVER
+#endif /*SERVER*/
faixbox_param_t * gene_faixbox( box_param_t *box)
{
@@ -59,7 +59,7 @@ faixbox_param_t * gene_faixbox( box_param_t *box)
if( faix->version%2){
subfaixbox8_param_t *subfaixbox;
- int i;
+ size_t i;
faix->subfaixbox.byte8_params = (subfaixbox8_param_t *)malloc( sizeof(subfaixbox8_param_t));
@@ -83,7 +83,7 @@ faixbox_param_t * gene_faixbox( box_param_t *box)
}
else{
subfaixbox4_param_t *subfaixbox;
- int i;
+ size_t i;
faix->subfaixbox.byte4_params = (subfaixbox4_param_t *)malloc( sizeof(subfaixbox4_param_t));
@@ -182,10 +182,11 @@ Byte8_t get_elemLen( faixbox_param_t *faix, Byte8_t elem_id, Byte8_t row_id)
Byte4_t get_elemAux( faixbox_param_t *faix, Byte8_t elem_id, Byte8_t row_id)
{
+ Byte8_t nmax;
if( faix->version <2)
return -1;
- Byte8_t nmax = get_nmax( faix);
+ nmax = get_nmax( faix);
if( faix->version%2)
return faix->subfaixbox.byte8_params->aux[ row_id*nmax+elem_id];
else