Changeset 6285

Show
Ignore:
Timestamp:
30/11/09 12:15:54 (2 years ago)
Author:
baderk
Message:

Karmic Koala (gcc 4.4.1) patch.

Location:
trunk
Files:
11 modified

Legend:

Unmodified
Added
Removed
  • trunk/AWT/AWT_db_browser.cxx

    r6280 r6285  
    483483 
    484484inline void insert_history_selection(AW_window *aww, AW_selection_list *sel, const char *entry, int wanted_db) { 
    485     char *colon = strchr(entry, ':'); 
     485    const char *colon = strchr(entry, ':'); 
    486486    if (colon && (atoi(entry) == wanted_db)) { 
    487487        aww->insert_selection(sel, colon+1, colon+1); 
  • trunk/AWT/AWT_file_selection.cxx

    r6141 r6285  
    143143 
    144144char *AWT_extract_directory(const char *path) { 
    145     char *lslash = strrchr(path, '/'); 
     145    const char *lslash = strrchr(path, '/'); 
    146146    if (!lslash) return 0; 
    147147 
  • trunk/AWTI/AWTI_import.cxx

    r6141 r6285  
    2020 
    2121inline const char *name_only(const char *fullpath) { 
    22     char *lslash = strrchr(fullpath, '/'); 
     22    const char *lslash = strrchr(fullpath, '/'); 
    2323    return lslash ? lslash+1 : fullpath; 
    2424} 
  • trunk/HELP_SOURCE/arb_help2xml.cxx

    r6141 r6285  
    312312    // otherwise returns position behind keyword and sets value of 'keyword' 
    313313 
    314     char *space = strchr(line, ' '); 
     314    const char *space = strchr(line, ' '); 
    315315    if (space && space>line) { 
    316316        keyword = string(line, 0, space-line); 
  • trunk/Makefile

    r6280 r6285  
    5959        4.2.0 4.2.1 4.2.3 4.2.4 \ 
    6060        4.3 4.3.1 4.3.2 4.3.3 \ 
     61        4.4.1 
    6162 
    6263ALLOWED_GCC_VERSIONS=$(ALLOWED_GCC_3xx_VERSIONS) $(ALLOWED_GCC_4xx_VERSIONS) 
  • trunk/NTREE/NT_edconf.cxx

    r6280 r6285  
    245245    struct SAI_string_builder *sai_builder = (struct SAI_string_builder*)cd_sai_builder; 
    246246 
    247     char *sep = strchr(key,1); 
     247    const char *sep = strchr(key,1); 
    248248    if (!sep) return val;                           // what's wrong 
    249249 
  • trunk/PROBE_DESIGN/SaiProbeVisualization.cxx

    r6280 r6285  
    524524                    if (!tok_suffix) { 
    525525                        // handle special case where no suffix exists 
    526                         char *end = strchr(probeRegion, 0); 
     526                        const char *end = strchr(probeRegion, 0); 
    527527                        if (end>probeRegion && end[-1] == '-') tok_suffix = ""; 
    528528                    } 
  • trunk/PROBE_DESIGN/probe_design.cxx

    r6280 r6285  
    18461846 
    18471847        if (!error) { // set pt-server database file to same permissions as pts directory 
    1848             char *dir = strrchr(file,'/'); 
     1848            char *dir = const_cast<char*>(strrchr(file,'/')); 
    18491849            if (dir) { 
    18501850                *dir = 0; 
  • trunk/SL/FAST_ALIGNER/ClustalV.cxx

    r6279 r6285  
    287287//          -1 if one char is illegal 
    288288{ 
    289     char *p1 = strchr(nucleic_acid_order, c1); 
    290     char *p2 = strchr(nucleic_acid_order, c2); 
     289    const char *p1 = strchr(nucleic_acid_order, c1); 
     290    const char *p2 = strchr(nucleic_acid_order, c2); 
    291291 
    292292    awtc_assert(c1); 
  • trunk/SL/FILE_BUFFER/FileBuffer.cxx

    r5958 r6285  
    1313#include <cstdlib> 
    1414#include <cstring> 
     15#include <cstdio> 
    1516#include <errno.h> 
    1617 
  • trunk/TOOLS/arb_gene_probe.cxx

    r6141 r6285  
    216216 
    217217#if defined(DEBUG) 
    218     char *firstSem = strchr(long_name, ';'); 
     218    const char *firstSem = strchr(long_name, ';'); 
    219219    gp_assert(firstSem); 
    220220    CHECK_SEMI_ESCAPED(firstSem+1);