]> granicus.if.org Git - curl/commitdiff
curl_sasl: declare mechtable static
authorMartin Kepplinger <martink@posteo.de>
Tue, 4 Apr 2017 20:04:38 +0000 (22:04 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 4 Apr 2017 20:59:34 +0000 (22:59 +0200)
struct mechtable is only used locally here. It can be declared static.

lib/curl_sasl.c

index 807f5de7e8224b4fb464481161d557a58d94828b..b3789dab00dea252a327e718b9afa3a47129a8fa 100644 (file)
@@ -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 */