Changeset e1dbd9b


Ignore:
Timestamp:
Jun 8, 2010 10:15:59 AM (7 years ago)
Author:
www-data <www-data@…>
Branches:
master, experimental, feature_CIS, feature_PetascopeSecore, feature_cmake, feature_rasdapy, feature_wcps2, fixes, release_8.5, release_9.0, release_9.1, release_9.2, release_9.3, release_9.4, release_9.5
Children:
451da83
Parents:
a41d53d
git-author:
Keshab Raj Neupane <neupane.keshab@…> (09/04/09 23:51:44)
git-committer:
www-data <www-data@…> (06/08/10 10:15:59)
Message:

fix : compile warnings in reladminif,relindexif

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • reladminif/sqlerror.pgc

    r8f27e65 re1dbd9b  
    113113        size_t characters_written = 0;
    114114
    115         snprintf(error_buffer, BUFFER_SIZE, "SQLSTATE: %5s SQLCODE: %d\n", SQLSTATE, SQLCODE);
     115        snprintf(error_buffer, BUFFER_SIZE, "SQLSTATE: %5s SQLCODE: %ld\n", SQLSTATE, SQLCODE);
    116116        characters_written = strlen(error_buffer);
    117117        if (characters_written > length)
     
    181181        {
    182182                RMInit::logOut << msg << endl;
    183                 snprintf(lastErrorMsg, LASTERRORMSGLEN, msg);
     183                snprintf(lastErrorMsg, LASTERRORMSGLEN,"%s\n" , msg);
    184184                delete [] msg;
    185185                msg = NULL;
  • relindexif/hierindex.pgc

    r4a0ded0 re1dbd9b  
    237237#endif // NOTYET
    238238        // alternative solution for now:
    239         (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "INSERT INTO RAS_HIERIX ( MDDObjIxOId, NumEntries, Dimension, ParentOId, IndexSubType, DynData ) VALUES ( %f, %d, %d, %f, %d, %d )", id2, size2, dimension2, parentid2, indexsubtype2, blobOid );
     239        (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "INSERT INTO RAS_HIERIX ( MDDObjIxOId, NumEntries, Dimension, ParentOId, IndexSubType, DynData ) VALUES ( %f, %ld, %ld, %f, %d, %d )", id2, size2, dimension2, parentid2, indexsubtype2, blobOid );
    240240        TALK( pgQuery );
    241241        pgResult = PQexec( pgConn, pgQuery );
     
    572572#endif // NOTYET
    573573        // alternative solution for now:
    574         (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "UPDATE RAS_HIERIX SET NumEntries = %d, Dimension = %d, ParentOId = %f, IndexSubType = %d, DynData = %d WHERE MDDObjIxOId = %f", size4, dimension4, parentid4, indexsubtype4, blobOid, id4 );
     574        (void) snprintf( pgQuery, (size_t) sizeof(pgQuery), "UPDATE RAS_HIERIX SET NumEntries = %ld, Dimension = %ld, ParentOId = %f, IndexSubType = %d, DynData = %d WHERE MDDObjIxOId = %f", size4, dimension4, parentid4, indexsubtype4, blobOid, id4 );
    575575        TALK( pgQuery );
    576576        pgResult = PQexec( pgConn, pgQuery );
Note: See TracChangeset for help on using the changeset viewer.