Changeset 29050
- Timestamp:
- 05/15/14 20:53:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/global.h
r29038 r29050 6155 6155 int converte2settings(int flag) 6156 6156 { 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; 6158 6158 int incount = 0; 6159 6159 … … 6166 6166 end = ostrcat("</sat>", NULL, 0, 0); 6167 6167 filename = ostrcat("/tmp/satellites.xml", NULL, 0, 0); 6168 path = ostrcat("/transponder/satellites.xml", NULL, 0, 0); 6168 6169 transponderfile = ostrcat("/tmp/transponder.sat", NULL, 0, 0); 6169 6170 satfile = ostrcat("/tmp/satellites.sat", NULL, 0, 0); … … 6178 6179 end = ostrcat("</cable>", NULL, 0, 0); 6179 6180 filename = ostrcat("/tmp/cables.xml", NULL, 0, 0); 6181 path = ostrcat("/transponder/cables.xml", NULL, 0, 0); 6180 6182 transponderfile = ostrcat("/tmp/transponder.cable", NULL, 0, 0); 6181 6183 satfile = ostrcat("/tmp/satellites.cable", NULL, 0, 0); … … 6191 6193 end = ostrcat("</terrestrial>", NULL, 0, 0); 6192 6194 filename = ostrcat("/tmp/terrestrial.xml", NULL, 0, 0); 6195 path = ostrcat("/transponder/terrestrial.xml", NULL, 0, 0); 6193 6196 transponderfile = ostrcat("/tmp/transponder.ter", NULL, 0, 0); 6194 6197 satfile = ostrcat("/tmp/satellites.ter", NULL, 0, 0); … … 6196 6199 incount = 9999; 6197 6200 } 6198 6201 6202 if(!file_exist(filename)) 6203 gethttp("atemio.dyndns.tv", path, 80, filename, HTTPAUTH, 5000, NULL, 0); 6204 6199 6205 char* tmptext = NULL; 6200 6206 tmptext = ostrcat(_("Error: Transponder Source file not found"), "\nfilename: ", 0, 0); … … 6205 6211 textbox(_("Message"), tmptext, _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 1000, 200, 0, 0); 6206 6212 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; 6207 6220 return 0; 6208 6221 } … … 6338 6351 } 6339 6352 6353 free(path), path = NULL; 6354 free(filename), filename = NULL; 6355 free(satfile), satfile = NULL; 6356 free(transponderfile), transponderfile = NULL; 6357 6340 6358 free(tmpstr3), tmpstr3 = NULL; 6341 6359 free(buf), buf = NULL;
Note: See TracChangeset
for help on using the changeset viewer.