chiark
/
gitweb
/
~mdw
/
termux-packages
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vim: Use sensible.vim as system vimrc
[termux-packages]
/
packages
/
command-not-found
/
command-not-found.c
diff --git
a/packages/command-not-found/command-not-found.c
b/packages/command-not-found/command-not-found.c
index acfbe5845496ebb7cd8f164a9dd2c240c0bbb86e..a43a8ea6c49317c1f7652600cf87ff77ce449861 100644
(file)
--- 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"
#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));
}
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];
unsigned int s1len = strlen(s1);
unsigned int s2len = strlen(s2);
unsigned int matrix[s2len+1][s1len+1];