Changeset 504


Ignore:
Timestamp:
Aug 25, 2018, 6:28:41 PM (6 years ago)
Author:
viala@…
Message:

[user/sort] Fix function prototypes add const when possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/sort/sort.c

    r475 r504  
    6060
    6161////////////////////////////////////
    62 void bubbleSort( int *        array,
    63                  unsigned int length,
    64                  unsigned int init_pos )
     62static void bubbleSort(
     63    int * array,
     64    unsigned int length,
     65    unsigned int init_pos )
    6566{
    6667    unsigned int i;
     
    8485
    8586/////////////////////////
    86 void merge( int * src,
    87             int * dst,
    88             int length,
    89             int init_pos_src_a,
    90             int init_pos_src_b,
    91             int init_pos_dst )
     87static void merge(
     88    const int * src,
     89    int * dst,
     90    int length,
     91    int init_pos_src_a,
     92    int init_pos_src_b,
     93    int init_pos_dst )
    9294{
    9395    int i;
     
    128130
    129131/////////////////////////
    130 void sort( args_t * ptr )
     132static void sort( const args_t * ptr )
    131133{
    132134    unsigned int       i;
Note: See TracChangeset for help on using the changeset viewer.