Created
September 15, 2013 00:06
-
-
Save weltling/6566850 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ diff -ru riack.orig riack | |
Only in riack.orig: .git | |
diff -ru riack.orig/src/ints.h riack/src/ints.h | |
--- riack.orig/src/ints.h Sun Sep 15 01:20:33 2013 | |
+++ riack/src/ints.h Sun Sep 15 01:22:25 2013 | |
@@ -5,7 +5,7 @@ | |
#include "riack-config.h" | |
#endif | |
-#if defined(HAVE_STDINT_H) | |
+#if defined(HAVE_STDINT_H) && !defined(_WIN32) | |
#include <stdint.h> | |
#else | |
#define int32_t signed __int32 | |
diff -ru riack.orig/src/riack.c riack/src/riack.c | |
--- riack.orig/src/riack.c Sun Sep 15 01:20:33 2013 | |
+++ riack/src/riack.c Sun Sep 15 01:16:17 2013 | |
@@ -461,9 +461,10 @@ | |
struct RIACK_COMMIT_HOOK* riack_rpb_hooks_to_hooks(struct RIACK_CLIENT *client, RpbCommitHook ** rpb_hooks, size_t hook_count) | |
{ | |
size_t i; | |
+ struct RIACK_COMMIT_HOOK* result; | |
if (hook_count == 0) return 0; | |
- struct RIACK_COMMIT_HOOK* result = RCALLOC(client, sizeof(struct RIACK_COMMIT_HOOK*) * hook_count); | |
+ result = RCALLOC(client, sizeof(struct RIACK_COMMIT_HOOK*) * hook_count); | |
for (i=0; i<hook_count; ++i) { | |
if (rpb_hooks[i]->has_name) { | |
RMALLOCCOPY(client, result[i].name.value, result[i].name.len, rpb_hooks[i]->name.data, rpb_hooks[i]->name.len); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment