Changeset 14615


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 *".

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/daemon.c

    r14613 r14615  
    164164
    165165static const char*
    166 getConfigDir (int argc, const char ** argv)
     166getConfigDir (int argc, const char * const * argv)
    167167{
    168168    int c;
  • trunk/daemon/remote.c

    r14613 r14615  
    18351835
    18361836static int
    1837 processArgs (const char * rpcurl, int argc, const char ** argv)
     1837processArgs (const char * rpcurl, int argc, const char * const * argv)
    18381838{
    18391839    int c;
  • trunk/libtransmission/tr-getopt.c

    r14241 r14615  
    188188
    189189int
    190 tr_getopt (const char *      usage,
    191            int               argc,
    192            const char **    argv,
    193            const tr_option * opts,
    194            const char **    setme_optarg)
     190tr_getopt (const char         * usage,
     191           int                  argc,
     192           const char * const  * argv,
     193           const tr_option     * opts,
     194           const char         ** setme_optarg)
    195195{
    196196    int               i;
  • 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 */
  • trunk/utils/create.c

    r14613 r14615  
    5252
    5353static int
    54 parseCommandLine (int argc, const char ** argv)
     54parseCommandLine (int argc, const char * const * argv)
    5555{
    5656  int c;
  • trunk/utils/edit.c

    r14613 r14615  
    4646
    4747static int
    48 parseCommandLine (int argc, const char ** argv)
     48parseCommandLine (int argc, const char * const * argv)
    4949{
    5050  int c;
  • trunk/utils/show.c

    r14613 r14615  
    5050
    5151static int
    52 parseCommandLine (int argc, const char ** argv)
     52parseCommandLine (int argc, const char * const * argv)
    5353{
    5454  int c;
Note: See TracChangeset for help on using the changeset viewer.