mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
52 lines
1.4 KiB
Diff
52 lines
1.4 KiB
Diff
From 4e2be5dda6429e253f60c9b1fe4a7831f7b009e1 Mon Sep 17 00:00:00 2001
|
|
From: jsuto <sj@acts.hu>
|
|
Date: Tue, 23 Apr 2024 17:33:10 +0200
|
|
Subject: [PATCH] Inline compiler fix (#18)
|
|
|
|
Signed-off-by: Janos SUTO <sj@acts.hu>
|
|
---
|
|
src/decoder.c | 2 +-
|
|
src/hash.c | 2 +-
|
|
src/session.c | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/src/decoder.c b/src/decoder.c
|
|
index fc034ff1..a22bd1b0 100644
|
|
--- a/src/decoder.c
|
|
+++ b/src/decoder.c
|
|
@@ -67,7 +67,7 @@ static int compmi(const void *m1, const void *m2){
|
|
}
|
|
|
|
|
|
-inline void utf8_encode_char(unsigned char c, unsigned char *buf, int buflen, int *len){
|
|
+static inline void utf8_encode_char(unsigned char c, unsigned char *buf, int buflen, int *len){
|
|
int count=0;
|
|
|
|
memset(buf, 0, buflen);
|
|
diff --git a/src/hash.c b/src/hash.c
|
|
index bb131cbf..35947fee 100644
|
|
--- a/src/hash.c
|
|
+++ b/src/hash.c
|
|
@@ -9,7 +9,7 @@
|
|
#include <piler.h>
|
|
|
|
|
|
-inline int hash(unsigned int key){
|
|
+static inline int hash(unsigned int key){
|
|
return key % MAXHASH;
|
|
}
|
|
|
|
diff --git a/src/session.c b/src/session.c
|
|
index a7ca4094..932caa0f 100644
|
|
--- a/src/session.c
|
|
+++ b/src/session.c
|
|
@@ -199,7 +199,7 @@ void tear_down_session(struct smtp_session **sessions, int slot, int *num_connec
|
|
}
|
|
|
|
|
|
-inline int get_last_newline_position(char *buf, int buflen){
|
|
+static inline int get_last_newline_position(char *buf, int buflen){
|
|
int i;
|
|
|
|
for(i=buflen; i>0; i--){
|