argvPrint() doesn't modify argv, make it const

This commit is contained in:
Panu Matilainen 2008-04-07 12:35:37 +03:00
parent 4e0ab74d8d
commit a70823b998
2 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@
#include "debug.h" #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; if (fp == NULL) fp = stderr;

View File

@ -28,7 +28,7 @@ typedef struct ARGI_s const * const ARGI_const_t;
* @param argv argv array * @param argv argv array
* @param fp output file handle (NULL uses stderr) * @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 /** \ingroup rpmargv
* Destroy an argi array. * Destroy an argi array.