Permalink
Browse files

Portability fixes

  • Loading branch information...
1 parent 074a75b commit 5e76bdd30c116933eaeefeee480ae91210a9147f @jrosdahl committed Mar 5, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 conf.c
  2. +1 −1 stats.c
View
6 conf.c
@@ -219,15 +219,15 @@ handle_conf_setting(struct conf *conf, const char *key, const char *value,
* Special rule for boolean settings from the environment: any value means
* true.
*/
- bool *value = (bool *)((void *)conf + item->offset);
+ bool *value = (bool *)((char *)conf + item->offset);
*value = !negate_boolean;
goto out;
}
- if (!item->parser(value, (void *)conf + item->offset, errmsg)) {
+ if (!item->parser(value, (char *)conf + item->offset, errmsg)) {
return false;
}
- if (item->verifier && !item->verifier((void *)conf + item->offset, errmsg)) {
+ if (item->verifier && !item->verifier((char *)conf + item->offset, errmsg)) {
return false;
}
View
@@ -49,7 +49,7 @@ static void display_size_times_1024(uint64_t size);
static struct {
enum stats stat;
char *message;
- void (*fn)(size_t );
+ void (*fn)(uint64_t);
unsigned flags;
} stats_info[] = {
{ STATS_CACHEHIT_DIR, "cache hit (direct) ", NULL, FLAG_ALWAYS },

0 comments on commit 5e76bdd

Please sign in to comment.