Ignore:
Timestamp:
Dec 6, 2015, 10:39:14 PM (6 years ago)
Author:
jordan
Message:

fix const warnings

In particular, in passing argv around as a "const char * const *"
instead of a "const char *".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-getopt.h

    r14241 r14615  
    5151 * @return TR_GETOPT_DONE, TR_GETOPT_ERR, TR_GETOPT_UNK, or the matching tr_option's `val' field
    5252 */
    53 int  tr_getopt (const char       * summary,
    54                 int                argc,
    55                 const char      ** argv,
    56                 const tr_option  * opts,
    57                 const char      ** setme_optarg);
     53int  tr_getopt (const char          * summary,
     54                int                   argc,
     55                const char * const  * argv,
     56                const tr_option     * opts,
     57                const char         ** setme_optarg);
    5858
    5959/** @brief prints the `Usage' help section to stdout */
Note: See TracChangeset for help on using the changeset viewer.