From: Fredrik Fornwall Date: Sun, 27 Nov 2016 19:06:35 +0000 (-0500) Subject: command-not-found: Mark local functions as static X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/86b760f6274a1eb68945ade11570c6458a941778?ds=inline command-not-found: Mark local functions as static See #565. --- diff --git a/packages/command-not-found/command-not-found.c b/packages/command-not-found/command-not-found.c index acfbe584..a43a8ea6 100644 --- a/packages/command-not-found/command-not-found.c +++ b/packages/command-not-found/command-not-found.c @@ -4,11 +4,11 @@ #include "commands.h" -inline int termux_min3(unsigned int a, unsigned int b, unsigned int c) { +static inline int termux_min3(unsigned int a, unsigned int b, unsigned int c) { return (a < b ? (a < c ? a : c) : (b < c ? b : c)); } -int termux_levenshtein_distance(char const* restrict s1, char const* restrict s2) { +static int termux_levenshtein_distance(char const* restrict s1, char const* restrict s2) { unsigned int s1len = strlen(s1); unsigned int s2len = strlen(s2); unsigned int matrix[s2len+1][s1len+1];