summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/stockticker
Side-by-side diff
Diffstat (limited to 'noncore/todayplugins/stockticker') (more/less context) (show whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/libstocks/http.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/noncore/todayplugins/stockticker/libstocks/http.c b/noncore/todayplugins/stockticker/libstocks/http.c
index cc78ab7..155ce4b 100644
--- a/noncore/todayplugins/stockticker/libstocks/http.c
+++ b/noncore/todayplugins/stockticker/libstocks/http.c
@@ -86,5 +86,5 @@ libstocks_return_code http_get(char *http_file, char *http_server, char **pdata)
- } else
+ }
+ else
{
-
#ifdef DEBUG
@@ -98,3 +98,2 @@ libstocks_return_code http_get(char *http_file, char *http_server, char **pdata)
{
-
#ifdef DEBUG
@@ -161,3 +160,3 @@ libstocks_return_code http_get(char *http_file, char *http_server, char **pdata)
- if (r)
+ if (r > 0)
{
@@ -167,4 +166,4 @@ libstocks_return_code http_get(char *http_file, char *http_server, char **pdata)
{
- fprintf(stderr,"Memory allocating error (%s line %d)\n"
- ,__FILE__, __LINE__);
+ fprintf(stderr,"Memory allocating error (%s line %d)\n",
+ __FILE__, __LINE__);
exit(1);
@@ -180,4 +179,4 @@ libstocks_return_code http_get(char *http_file, char *http_server, char **pdata)
{
- fprintf(stderr,"Memory allocating error (%s line %d)\n"
- ,__FILE__, __LINE__);
+ fprintf(stderr,"Memory allocating error (%s line %d)\n",
+ __FILE__, __LINE__);
exit(1);
@@ -242,4 +241,4 @@ libstocks_return_code http_get(char *http_file, char *http_server, char **pdata)
free(data);
- fprintf(stderr,"Memory allocating error (%s line %d)\n"
- ,__FILE__, __LINE__);
+ fprintf(stderr,"Memory allocating error (%s line %d)\n",
+ __FILE__, __LINE__);
exit(1);