Changeset 38723
- Timestamp:
- 09/11/16 17:59:53 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/moduleconfig.h
r34050 r38723 153 153 tmp->type = CHOICEBOX; 154 154 155 // show caid in hex 156 int caid_int = 0; 157 char* caid = ostrcat(ret[i].part, NULL, 0, 0); 158 sscanf(caid, "%X", &caid_int); 159 caid_int = strtol(caid , NULL, 16); 160 free(caid), caid = NULL; 161 162 char* caid_hex = malloc(50); 163 if(caid_hex != NULL) 164 sprintf(caid_hex, "%d", caid_int); 165 155 166 if(checkdoublecaid(dvbnode, ret[i].part) == 1) 156 167 { 157 168 tmpstr = ostrcat(tmpstr, ret[i].part, 1, 0); 158 tmpstr = ostrcat(tmpstr, " (", 1, 0); 169 if(caid_hex != NULL) 170 { 171 tmpstr = ostrcat(tmpstr, " (", 1, 0); 172 tmpstr = ostrcat(tmpstr, caid_hex, 1, 0); 173 tmpstr = ostrcat(tmpstr, ") (", 1, 0); 174 } 175 else 176 tmpstr = ostrcat(tmpstr, " (", 1, 0); 177 159 178 tmpstr = ostrcat(tmpstr, _("double"), 1, 0); 160 179 tmpstr = ostrcat(tmpstr, ")", 1, 0); 161 180 } 162 181 else 182 { 163 183 tmpstr = ostrcat(tmpstr, ret[i].part, 1, 0); 184 if(caid_hex != NULL) 185 { 186 tmpstr = ostrcat(tmpstr, " (", 1, 0); 187 tmpstr = ostrcat(tmpstr, caid_hex, 1, 0); 188 tmpstr = ostrcat(tmpstr, ")", 1, 0); 189 } 190 } 191 free(caid_hex); 164 192 165 193 changetext(tmp, tmpstr);
Note: See TracChangeset
for help on using the changeset viewer.