[fix] fix build warnings in get.c
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
#include "teleportapp.h"
|
#include "teleportapp.h"
|
||||||
#include "get.h"
|
#include "get.h"
|
||||||
|
|
||||||
static SoupSession *session;
|
|
||||||
static gboolean debug;
|
static gboolean debug;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -39,8 +38,9 @@ get (char *url,
|
|||||||
const gchar *originDevice,
|
const gchar *originDevice,
|
||||||
const gchar *downloadDirectory,
|
const gchar *downloadDirectory,
|
||||||
const gchar *outputFilename) {
|
const gchar *outputFilename) {
|
||||||
GError *error = NULL;
|
SoupSession *session;
|
||||||
SoupLogger *logger = NULL;
|
SoupLogger *logger = NULL;
|
||||||
|
SoupMessage *msg;
|
||||||
|
|
||||||
if (!soup_uri_new (url)) {
|
if (!soup_uri_new (url)) {
|
||||||
g_printerr ("Could not parse '%s' as a URL\n", url);
|
g_printerr ("Could not parse '%s' as a URL\n", url);
|
||||||
@@ -59,9 +59,6 @@ get (char *url,
|
|||||||
g_object_unref (logger);
|
g_object_unref (logger);
|
||||||
}
|
}
|
||||||
|
|
||||||
SoupMessage *msg;
|
|
||||||
const char *header;
|
|
||||||
|
|
||||||
msg = soup_message_new ("GET", url);
|
msg = soup_message_new ("GET", url);
|
||||||
soup_message_set_flags (msg, SOUP_MESSAGE_NO_REDIRECT);
|
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 *);
|
int saveFile (SoupMessage *, const gchar *, const gchar *);
|
||||||
gchar * getFilePath (const gchar *, const gchar *);
|
gchar * getFilePath (const gchar *, const gchar *);
|
||||||
|
int get (char *, const gchar *, const gchar *, const gchar *);
|
||||||
|
|
||||||
#endif /* __GET_H */
|
#endif /* __GET_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user