Skip to content

Commit

Permalink
compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rhash committed Sep 14, 2011
1 parent a48e1f2 commit 14f00fc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions common_func.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <assert.h>
#include <stdint.h>
#include <time.h>
#include <stdarg.h>
#include <wchar.h>

#include "win_utils.h"
#include "parse_cmdline.h"
Expand Down
1 change: 1 addition & 0 deletions common_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <stdint.h>
#include <stdio.h>
#include <time.h> /* for time_t */
#include <stddef.h> /* for wchar_t */

#ifndef _WIN32
#include <sys/time.h> /* for timeval */
Expand Down
2 changes: 1 addition & 1 deletion file_set.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
static unsigned file_set_make_hash(const char* string)
{
unsigned hash;
if(rhash_msg(RHASH_CRC32, string, strlen(string), (unsigned char*)hash) < 0)
if(rhash_msg(RHASH_CRC32, string, strlen(string), (unsigned char*)&hash) < 0)
return 0;
return hash;
}
Expand Down
2 changes: 1 addition & 1 deletion librhash/torrent.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ static void bt_bencode_pieces(torrent_ctx* ctx)
* @param ctx the torrent algorithm context
* @param text the null-terminated string to append
*/
void bt_str_append(torrent_ctx *ctx, const char* text)
static void bt_str_append(torrent_ctx *ctx, const char* text)
{
size_t length = strlen(text);

Expand Down
2 changes: 0 additions & 2 deletions librhash/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#ifndef UTIL_H
#define UTIL_H

#include <stddef.h> /* for wchar_t */

#ifdef __cplusplus
extern "C" {
#endif
Expand Down

0 comments on commit 14f00fc

Please sign in to comment.