summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-08-24 00:37:36 +0100
committerColin Watson <cjwatson@debian.org>2010-08-24 00:37:36 +0100
commit682321bd8f6f8c156bf1e58f7effb69dcd32510d (patch)
tree24fd689689eda5b0fbf0f89d128a88fc55d63009
parentd09ce9b9f468c89e4d3f8c4a7d4b4abda56ac385 (diff)
staticify most functions in ssh-vulnkey.c
-rw-r--r--debian/patches/ssh-vulnkey.patch10
-rw-r--r--ssh-vulnkey.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/debian/patches/ssh-vulnkey.patch b/debian/patches/ssh-vulnkey.patch
index 734dff637..81c225a7f 100644
--- a/debian/patches/ssh-vulnkey.patch
+++ b/debian/patches/ssh-vulnkey.patch
@@ -925,7 +925,7 @@ Index: b/ssh-vulnkey.c
925+ exit(1); 925+ exit(1);
926+} 926+}
927+ 927+
928+void 928+static void
929+describe_key(const char *filename, u_long linenum, const char *msg, 929+describe_key(const char *filename, u_long linenum, const char *msg,
930+ Key *key, const char *comment, int min_verbosity) 930+ Key *key, const char *comment, int min_verbosity)
931+{ 931+{
@@ -943,7 +943,7 @@ Index: b/ssh-vulnkey.c
943+ xfree(fp); 943+ xfree(fp);
944+} 944+}
945+ 945+
946+int 946+static int
947+do_key(const char *filename, u_long linenum, 947+do_key(const char *filename, u_long linenum,
948+ Key *key, const char *comment) 948+ Key *key, const char *comment)
949+{ 949+{
@@ -976,7 +976,7 @@ Index: b/ssh-vulnkey.c
976+ return ret; 976+ return ret;
977+} 977+}
978+ 978+
979+int 979+static int
980+do_filename(const char *filename, int quiet_open) 980+do_filename(const char *filename, int quiet_open)
981+{ 981+{
982+ FILE *f; 982+ FILE *f;
@@ -1100,7 +1100,7 @@ Index: b/ssh-vulnkey.c
1100+ return ret; 1100+ return ret;
1101+} 1101+}
1102+ 1102+
1103+int 1103+static int
1104+do_host(int quiet_open) 1104+do_host(int quiet_open)
1105+{ 1105+{
1106+ int i; 1106+ int i;
@@ -1117,7 +1117,7 @@ Index: b/ssh-vulnkey.c
1117+ return ret; 1117+ return ret;
1118+} 1118+}
1119+ 1119+
1120+int 1120+static int
1121+do_user(const char *dir) 1121+do_user(const char *dir)
1122+{ 1122+{
1123+ int i; 1123+ int i;
diff --git a/ssh-vulnkey.c b/ssh-vulnkey.c
index f32317afc..2e29ba462 100644
--- a/ssh-vulnkey.c
+++ b/ssh-vulnkey.c
@@ -79,7 +79,7 @@ usage(void)
79 exit(1); 79 exit(1);
80} 80}
81 81
82void 82static void
83describe_key(const char *filename, u_long linenum, const char *msg, 83describe_key(const char *filename, u_long linenum, const char *msg,
84 Key *key, const char *comment, int min_verbosity) 84 Key *key, const char *comment, int min_verbosity)
85{ 85{
@@ -97,7 +97,7 @@ describe_key(const char *filename, u_long linenum, const char *msg,
97 xfree(fp); 97 xfree(fp);
98} 98}
99 99
100int 100static int
101do_key(const char *filename, u_long linenum, 101do_key(const char *filename, u_long linenum,
102 Key *key, const char *comment) 102 Key *key, const char *comment)
103{ 103{
@@ -130,7 +130,7 @@ do_key(const char *filename, u_long linenum,
130 return ret; 130 return ret;
131} 131}
132 132
133int 133static int
134do_filename(const char *filename, int quiet_open) 134do_filename(const char *filename, int quiet_open)
135{ 135{
136 FILE *f; 136 FILE *f;
@@ -254,7 +254,7 @@ do_filename(const char *filename, int quiet_open)
254 return ret; 254 return ret;
255} 255}
256 256
257int 257static int
258do_host(int quiet_open) 258do_host(int quiet_open)
259{ 259{
260 int i; 260 int i;
@@ -271,7 +271,7 @@ do_host(int quiet_open)
271 return ret; 271 return ret;
272} 272}
273 273
274int 274static int
275do_user(const char *dir) 275do_user(const char *dir)
276{ 276{
277 int i; 277 int i;