From 3ad0b3622cf92989584097787323f00bc7a36c48 Mon Sep 17 00:00:00 2001 From: Petr Pisar Date: Thu, 12 May 2011 13:13:56 +0200 Subject: Make global symbols static as possible There are some calls (e.g. getpwnam(3)) that can lead to dlopening other libraries that could jump to symbol with name clashing to one of global quota symbols. (e.g. Name server switch plug-in nss_db calls dirname(3) that's already defined in edquota.c and tht can cause segmentation fault.) Although it's not possible to solve all these problems, making as much as possible global objects and functions static is the best thing we can do to avoid name space polution. Signed-off-by: Jan Kara --- rquota_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rquota_client.c') diff --git a/rquota_client.c b/rquota_client.c index 53e0579..d67dd25 100644 --- a/rquota_client.c +++ b/rquota_client.c @@ -86,7 +86,7 @@ static inline void cliutil2netdqblk(struct sq_dqblk *n, struct util_dqblk *u) } /* Write appropriate error message */ -int rquota_err(int stat) +static int rquota_err(int stat) { switch (stat) { case -1: -- cgit v1.2.1