argvPrint() doesn't modify argv, make it const
This commit is contained in:
parent
4e0ab74d8d
commit
a70823b998
|
@ -8,9 +8,9 @@
|
|||
|
||||
#include "debug.h"
|
||||
|
||||
void argvPrint(const char * msg, ARGV_t argv, FILE * fp)
|
||||
void argvPrint(const char * msg, ARGV_const_t argv, FILE * fp)
|
||||
{
|
||||
ARGV_t av;
|
||||
ARGV_const_t av;
|
||||
|
||||
if (fp == NULL) fp = stderr;
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ typedef struct ARGI_s const * const ARGI_const_t;
|
|||
* @param argv argv array
|
||||
* @param fp output file handle (NULL uses stderr)
|
||||
*/
|
||||
void argvPrint(const char * msg, ARGV_t argv, FILE * fp);
|
||||
void argvPrint(const char * msg, ARGV_const_t argv, FILE * fp);
|
||||
|
||||
/** \ingroup rpmargv
|
||||
* Destroy an argi array.
|
||||
|
|
Loading…
Reference in New Issue