summaryrefslogtreecommitdiff
path: root/gammu/gammu.c
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2009-12-12 19:55:56 +0100
committerMichal Čihař <michal@cihar.com>2009-12-12 19:55:56 +0100
commit7e547c4531756f1a265607a666e30b714bb4f066 (patch)
tree56fec25cb0ce15bd2f08319973b3eaa8dc2e6416 /gammu/gammu.c
parent77e826963edb39dcf28c34dbc962fc529642af21 (diff)
Imported Upstream version 1.26.93
Diffstat (limited to 'gammu/gammu.c')
-rw-r--r--gammu/gammu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gammu/gammu.c b/gammu/gammu.c
index 952dd1f..c134335 100644
--- a/gammu/gammu.c
+++ b/gammu/gammu.c
@@ -309,6 +309,7 @@ static void CheckVersion(int argc, char *argv[])
const char *pos;
char new_version[20];
size_t i;
+ GSM_Error error;
if (argc >= 3) {
if (strcasecmp(argv[2], "STABLE") == 0) {
@@ -319,8 +320,8 @@ static void CheckVersion(int argc, char *argv[])
/* Read file */
RSS.Buffer = NULL;
RSS.Used = 0;
- if (!GSM_ReadHTTPFile(RSS_URL, &RSS))
- return;
+ error = GSM_ReadHTTPFile(RSS_URL, &RSS);
+ Print_Error(error);
if (checkstable) {
pos = strstr(RSS.Buffer, RSS_STABLE_STRING);
@@ -509,6 +510,7 @@ static GSM_Parameters Parameters[] = {
{"checkversion", 0, 1, CheckVersion, {H_Gammu,0}, "[STABLE]"},
{"checkfirmware", 0, 0, CheckFirmware, {H_Info,0}, ""},
{"getdisplaystatus", 0, 0, GetDisplayStatus, {H_Info,0}, ""},
+ {"getlocation", 0, 0, GetLocation, {H_Info,0}, ""},
{"monitor", 0, 1, Monitor, {H_Info,H_Network,H_Call,0}, "[times]"},
{"setautonetworklogin", 0, 0, SetAutoNetworkLogin, {H_Network,0}, ""},
{"listnetworks", 0, 1, ListNetworks, {H_Network,0}, "[country]"},