Commit a1b1037b authored by norvell's avatar norvell
Browse files

Fixes for linux build.

parent 63b9ee1d
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -911,14 +911,14 @@ size_t mem_count_summary( Counting_Size cnt_size )
}

#ifdef RAM_ANALYSIS
void mem_analyze()
void mem_analyze(void)
{
    unsigned int i;
    char buffer[1024];

    for ( i = 0; i < Num_Records_Cur_RAM; i++ )
    {
        sprintf( buffer, "%s:%d,%d;", Current_Allocations[i].name, Current_Allocations[i].lineno, Current_Allocations[i].block_size );
        sprintf( buffer, "%s:%d,%ld;", Current_Allocations[i].name, Current_Allocations[i].lineno, Current_Allocations[i].block_size );
        dbgwrite( buffer, sizeof( char ), strlen( buffer ), 1, "mem_analysis.csv" );
    }
    sprintf( buffer, "\n" );
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ extern "C"
    extern void mem_free( const char *func_name, int func_lineno, void *ptr );

#ifdef RAM_ANALYSIS
    extern void mem_analyze();
    extern void mem_analyze(void);
#endif

#ifdef __cplusplus