From a70823b99814cbef36ccb1a056f9ef1e97bd7ae2 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 7 Apr 2008 12:35:37 +0300 Subject: [PATCH] argvPrint() doesn't modify argv, make it const --- rpmio/argv.c | 4 ++-- rpmio/argv.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rpmio/argv.c b/rpmio/argv.c index 9a39f3a6b..7a09e3e50 100644 --- a/rpmio/argv.c +++ b/rpmio/argv.c @@ -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; diff --git a/rpmio/argv.h b/rpmio/argv.h index a28d39973..745a2c64b 100644 --- a/rpmio/argv.h +++ b/rpmio/argv.h @@ -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.