Commit 67fbdccf authored by Julian Sparber's avatar Julian Sparber

[fix] fix build warnings in get.c

parent 6d6c6696
......@@ -10,7 +10,6 @@
#include "teleportapp.h"
#include "get.h"
static SoupSession *session;
static gboolean debug;
static void
......@@ -39,8 +38,9 @@ get (char *url,
const gchar *originDevice,
const gchar *downloadDirectory,
const gchar *outputFilename) {
GError *error = NULL;
SoupSession *session;
SoupLogger *logger = NULL;
SoupMessage *msg;
if (!soup_uri_new (url)) {
g_printerr ("Could not parse '%s' as a URL\n", url);
......@@ -59,9 +59,6 @@ get (char *url,
g_object_unref (logger);
}
SoupMessage *msg;
const char *header;
msg = soup_message_new ("GET", url);
soup_message_set_flags (msg, SOUP_MESSAGE_NO_REDIRECT);
......
......@@ -8,5 +8,6 @@ extern int do_client_notify(char *);
int saveFile (SoupMessage *, const gchar *, const gchar *);
gchar * getFilePath (const gchar *, const gchar *);
int get (char *, const gchar *, const gchar *, const gchar *);
#endif /* __GET_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment