blob: ea513c04d9c58c52084dfb86dd3a00a7a2323d52 [file] [log] [blame]
From 1175b1cd102ee15512185c7983868e5746959da0 Mon Sep 17 00:00:00 2001
From: Adam Schubert <feartohell@seznam.cz>
Date: Mon, 11 May 2015 04:25:45 +0200
Subject: [PATCH] Fix build under clang
Downloaded from upstream commit:
https://github.com/librsync/librsync/commit/1175b1cd102ee15512185c7983868e5746959da0.patch
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
delta.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/delta.c b/delta.c
index 19498f9..72afdf6 100644
--- a/delta.c
+++ b/delta.c
@@ -126,12 +126,12 @@ static rs_result rs_delta_s_scan(rs_job_t *job);
static rs_result rs_delta_s_flush(rs_job_t *job);
static rs_result rs_delta_s_end(rs_job_t *job);
void rs_getinput(rs_job_t *job);
-inline int rs_findmatch(rs_job_t *job, rs_long_t *match_pos, size_t *match_len);
-inline rs_result rs_appendmatch(rs_job_t *job, rs_long_t match_pos, size_t match_len);
-inline rs_result rs_appendmiss(rs_job_t *job, size_t miss_len);
-inline rs_result rs_appendflush(rs_job_t *job);
-inline rs_result rs_processmatch(rs_job_t *job);
-inline rs_result rs_processmiss(rs_job_t *job);
+static inline int rs_findmatch(rs_job_t *job, rs_long_t *match_pos, size_t *match_len);
+static inline rs_result rs_appendmatch(rs_job_t *job, rs_long_t match_pos, size_t match_len);
+static inline rs_result rs_appendmiss(rs_job_t *job, size_t miss_len);
+static inline rs_result rs_appendflush(rs_job_t *job);
+static inline rs_result rs_processmatch(rs_job_t *job);
+static inline rs_result rs_processmiss(rs_job_t *job);
/**
* \brief Get a block of data if possible, and see if it matches.