summaryrefslogtreecommitdiff
path: root/bspatch.c
diff options
context:
space:
mode:
authorMatthew Endsley <mendsley@gmail.com>2015-03-26 09:42:25 -0700
committerMatthew Endsley <mendsley@gmail.com>2015-03-26 09:42:25 -0700
commit1edf9f656850c0c64dae260960fabd8249ea9c60 (patch)
treef3f0a71687a6d37891003bf6a1e99f63e4ce293a /bspatch.c
parent95f126c7eec42de0dec71b93362b9ea05033c62d (diff)
parentd1204147fe5fecb7da423f2562b29d01fb60b521 (diff)
downloadbsdiff-1edf9f656850c0c64dae260960fabd8249ea9c60.tar.gz
Merge pull request #6 from giuseppe/master
Diffstat (limited to 'bspatch.c')
-rw-r--r--bspatch.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/bspatch.c b/bspatch.c
index b850db7..881d7e3 100644
--- a/bspatch.c
+++ b/bspatch.c
@@ -25,17 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include <stdint.h>
-
-struct bspatch_stream
-{
- void* opaque;
- int (*read)(const struct bspatch_stream* stream, void* buffer, int length);
-};
-
-int bspatch(const uint8_t* old, int64_t oldsize, uint8_t* new, int64_t newsize, struct bspatch_stream* stream);
-
-#if !defined(BSPATCH_HEADER_ONLY)
+#include "bspatch.h"
static int64_t offtin(uint8_t *buf)
{
@@ -195,4 +185,3 @@ int main(int argc,char * argv[])
}
#endif
-#endif