]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - osl_core.h
Fix some signedness warnings.
[paraslash.git] / osl_core.h
index 27b808a7dfbf415efec209c86e09128569b94000..295351fecf72a8474c200dd8ded8305a07d4308e 100644 (file)
@@ -250,7 +250,7 @@ _static_inline_ char *column_filename(const struct osl_table *t, unsigned col_nu
  * \sa get_index_entry().
  */
 _static_inline_ int get_index_entry_start(const struct osl_table *t, uint32_t row_num,
  * \sa get_index_entry().
  */
 _static_inline_ int get_index_entry_start(const struct osl_table *t, uint32_t row_num,
-               unsigned char **index_entry)
+               char **index_entry)
 {
        uint32_t index_offset;
        index_offset = t->index_header_size + t->index_entry_size * row_num;
 {
        uint32_t index_offset;
        index_offset = t->index_header_size + t->index_entry_size * row_num;
@@ -258,7 +258,7 @@ _static_inline_ int get_index_entry_start(const struct osl_table *t, uint32_t ro
                *index_entry = NULL;
                return -E_INDEX_CORRUPTION;
        }
                *index_entry = NULL;
                return -E_INDEX_CORRUPTION;
        }
-       *index_entry = (unsigned char *)(t->index_map.data) + index_offset;
+       *index_entry = (char *)(t->index_map.data) + index_offset;
        return 1;
 }
 
        return 1;
 }
 
@@ -275,7 +275,7 @@ _static_inline_ int get_index_entry_start(const struct osl_table *t, uint32_t ro
  * \sa get_index_entry_start().
  */
 _static_inline_ int get_index_entry(const struct osl_table *t, uint32_t row_num,
  * \sa get_index_entry_start().
  */
 _static_inline_ int get_index_entry(const struct osl_table *t, uint32_t row_num,
-               uint32_t col_num, unsigned char **index_entry)
+               uint32_t col_num, char **index_entry)
 {
        int ret = get_index_entry_start(t, row_num, index_entry);
        if (ret < 0)
 {
        int ret = get_index_entry_start(t, row_num, index_entry);
        if (ret < 0)