summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2025-02-09 22:36:30 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-02-10 20:30:44 +0100
commit723fd3be917570ec3b2605b2e9c8c4e83a8f78e9 (patch)
treec532e798bb89db7c6d95e958d8cb9defacc35862 /libshouldbeinlibc
parent4bbdda186cbd5f2bd377c1a03b1b09efdab6dd23 (diff)
Allow compilation with -O0
* libshouldbeinlibc/lcm.c: make gcd static since it's not exposed as a symbol. * pfinet/linux-src/net/ipv4/{tcp,udp}_ipv4.c: Drop inline from lookup functions since they are used in another module (icmp.c) and shouldn't be removed. * term/munge.c: make poutput static since it's not exposed as a symbol. Message-ID: <nmok54owdbglalqkw2ky76jzvn4vvyybpqtftruzhpixcsx7fo@jbphrribcxq5>
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r--libshouldbeinlibc/lcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libshouldbeinlibc/lcm.c b/libshouldbeinlibc/lcm.c
index 606f4eba..ac0fafee 100644
--- a/libshouldbeinlibc/lcm.c
+++ b/libshouldbeinlibc/lcm.c
@@ -23,7 +23,7 @@
/* There are probably more efficient ways to do these... */
/* Return the greatest common divisor of p & q. */
-inline long
+static inline long
gcd (long p, long q)
{
if (p == 0)