curl / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] curl_sasl: declare mechtable static

From: Martin Kepplinger <martink_at_posteo.de>
Date: Tue, 4 Apr 2017 22:04:38 +0200

struct mechtable is only used locally here. It can be declared static.

---
 lib/curl_sasl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c
index 807f5de7e..b3789dab0 100644
--- a/lib/curl_sasl.c
+++ b/lib/curl_sasl.c
@@ -50,7 +50,7 @@
 #include "memdebug.h"
 
 /* Supported mechanisms */
-const struct {
+static const struct {
   const char   *name;  /* Name */
   size_t        len;   /* Name length */
   unsigned int  bit;   /* Flag bit */
-- 
2.11.0
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-04-04