freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype-demos][master] * src/ftdiff.c: Add const qualifi


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype-demos][master] * src/ftdiff.c: Add const qualifier to the executable basename.
Date: Tue, 13 Sep 2022 11:19:42 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs

Commits:

  • 2b880d8e
    by Alexei Podtelezhnikov at 2022-09-13T07:18:28-04:00
    * src/ftdiff.c: Add const qualifier to the executable basename.
    

1 changed file:

Changes:

  • src/ftdiff.c
    ... ... @@ -29,7 +29,7 @@
    29 29
     
    
    30 30
     
    
    31 31
       static void
    
    32
    -  usage( char*  execname )
    
    32
    +  usage( const char*  execname )
    
    33 33
       {
    
    34 34
         fprintf( stderr,
    
    35 35
           "\n"
    
    ... ... @@ -381,7 +381,7 @@
    381 381
       static void
    
    382 382
       render_state_set_files( RenderState  state,
    
    383 383
                               char**       files,
    
    384
    -                          char*        execname )
    
    384
    +                          const char*  execname )
    
    385 385
       {
    
    386 386
         FontFace      faces     = NULL;
    
    387 387
         unsigned int  num_faces = 0;
    
    ... ... @@ -1454,8 +1454,8 @@
    1454 1454
         const char*     textfile   = NULL;
    
    1455 1455
         char*           text       = (char*)default_text;
    
    1456 1456
     
    
    1457
    -    char*  execname;
    
    1458
    -    int    option;
    
    1457
    +    const char*  execname;
    
    1458
    +    int          option;
    
    1459 1459
     
    
    1460 1460
     
    
    1461 1461
         execname  = ft_basename( argv[0] );
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]