summaryrefslogtreecommitdiff
path: root/tests/auth-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auth-test.c')
-rw-r--r--tests/auth-test.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/auth-test.c b/tests/auth-test.c
index 523cdef8..08dfda3f 100644
--- a/tests/auth-test.c
+++ b/tests/auth-test.c
@@ -14,7 +14,7 @@
#include "test-utils.h"
-GMainLoop *loop;
+static GMainLoop *loop;
typedef struct {
/* Explanation of what you should see */
@@ -43,7 +43,7 @@ typedef struct {
guint final_status;
} SoupAuthTest;
-SoupAuthTest tests[] = {
+static SoupAuthTest tests[] = {
{ "No auth available, should fail",
"Basic/realm1/", "", "0", SOUP_STATUS_UNAUTHORIZED },
@@ -152,7 +152,7 @@ SoupAuthTest tests[] = {
{ "Make sure we've forgotten it",
"Digest/realm1/", "", "0", SOUP_STATUS_UNAUTHORIZED }
};
-int ntests = sizeof (tests) / sizeof (tests[0]);
+static int ntests = sizeof (tests) / sizeof (tests[0]);
static const char *auths[] = {
"no password", "password 1",
@@ -550,7 +550,8 @@ main (int argc, char **argv)
{
SoupSession *session;
SoupMessage *msg;
- char *base_uri, *uri, *expected;
+ const char *base_uri;
+ char *uri, *expected;
gboolean authenticated;
int i;