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
#include <stdio.h> | |
#include <string.h> | |
#include "librestic_amd64.h" | |
int main(int argc, const char **argv) | |
{ | |
if (argc < 2 || argv == NULL) | |
{ | |
fprintf(stderr, "No subcommand supplied!\n"); | |
return false; |
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 --git a/cmd/restic/main.go b/cmd/restic/main.go | |
index e61547c5..f9e8cfaa 100644 | |
--- a/cmd/restic/main.go | |
+++ b/cmd/restic/main.go | |
@@ -1,5 +1,7 @@ | |
package main | |
+import "C" | |
+ | |
import ( |