Changeset 29050


Ignore:
Timestamp:
05/15/14 20:53:17 (10 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/global.h

    r29038 r29050  
    61556155int converte2settings(int flag)
    61566156{
    6157         char* tmpstr3 = NULL, *buf = NULL, *tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *line = NULL, *name = NULL, *orbitalpos = NULL, *fetype = NULL, *flags = NULL, *outfile = NULL, *start = NULL, *end = NULL, *filename = NULL, *transponderfile = NULL, *satfile = NULL;
     6157        char* path = NULL, *tmpstr3 = NULL, *buf = NULL, *tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *line = NULL, *name = NULL, *orbitalpos = NULL, *fetype = NULL, *flags = NULL, *outfile = NULL, *start = NULL, *end = NULL, *filename = NULL, *transponderfile = NULL, *satfile = NULL;
    61586158        int incount = 0;
    61596159       
     
    61666166                end = ostrcat("</sat>", NULL, 0, 0);
    61676167                filename = ostrcat("/tmp/satellites.xml", NULL, 0, 0);
     6168                path = ostrcat("/transponder/satellites.xml", NULL, 0, 0);
    61686169                transponderfile = ostrcat("/tmp/transponder.sat", NULL, 0, 0);
    61696170                satfile = ostrcat("/tmp/satellites.sat", NULL, 0, 0);
     
    61786179                end = ostrcat("</cable>", NULL, 0, 0);
    61796180                filename = ostrcat("/tmp/cables.xml", NULL, 0, 0);
     6181                path = ostrcat("/transponder/cables.xml", NULL, 0, 0);
    61806182                transponderfile = ostrcat("/tmp/transponder.cable", NULL, 0, 0);
    61816183                satfile = ostrcat("/tmp/satellites.cable", NULL, 0, 0);
     
    61916193                end = ostrcat("</terrestrial>", NULL, 0, 0);
    61926194                filename = ostrcat("/tmp/terrestrial.xml", NULL, 0, 0);
     6195                path = ostrcat("/transponder/terrestrial.xml", NULL, 0, 0);
    61936196                transponderfile = ostrcat("/tmp/transponder.ter", NULL, 0, 0);
    61946197                satfile = ostrcat("/tmp/satellites.ter", NULL, 0, 0);
     
    61966199                incount = 9999;
    61976200        }
    6198        
     6201
     6202        if(!file_exist(filename))
     6203                gethttp("atemio.dyndns.tv", path, 80, filename, HTTPAUTH, 5000, NULL, 0);
     6204
    61996205        char* tmptext = NULL;
    62006206        tmptext = ostrcat(_("Error: Transponder Source file not found"), "\nfilename: ", 0, 0);
     
    62056211                textbox(_("Message"), tmptext, _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 200, 0, 0);
    62066212                free(tmptext), tmptext = NULL;
     6213                free(path), path = NULL;
     6214                free(filename), filename = NULL;
     6215                free(satfile), satfile = NULL;
     6216                free(fetype), fetype = NULL;
     6217                free(start), start = NULL;
     6218                free(end), end = NULL;
     6219                free(transponderfile), transponderfile = NULL;
    62076220                return 0;
    62086221        }
     
    63386351        }
    63396352
     6353        free(path), path = NULL;
     6354        free(filename), filename = NULL;
     6355        free(satfile), satfile = NULL;
     6356        free(transponderfile), transponderfile = NULL;
     6357               
    63406358        free(tmpstr3), tmpstr3 = NULL;
    63416359        free(buf), buf = NULL;
Note: See TracChangeset for help on using the changeset viewer.