diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-04-07 09:31:21 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-04-07 12:19:41 +0300 |
commit | d728ec28dcb51a139859e4fed48da894a8363a51 (patch) | |
tree | 1e210e8e97c563999f6909fa525972777a58101f /rpmio/argv.h | |
parent | a5533d9604770d16942e44d8c68cd28228bc3d2b (diff) | |
download | librpm-tizen-d728ec28dcb51a139859e4fed48da894a8363a51.tar.gz librpm-tizen-d728ec28dcb51a139859e4fed48da894a8363a51.tar.bz2 librpm-tizen-d728ec28dcb51a139859e4fed48da894a8363a51.zip |
Remove ARGstr_t typedef, it serves no purpose
- argv strings are just regular strings, the structure is what's special
Diffstat (limited to 'rpmio/argv.h')
-rw-r--r-- | rpmio/argv.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rpmio/argv.h b/rpmio/argv.h index e3bbcc126..840cb19c4 100644 --- a/rpmio/argv.h +++ b/rpmio/argv.h @@ -11,7 +11,6 @@ extern "C" { #endif -typedef const char * ARGstr_t; typedef char ** ARGV_t; typedef int * ARGint_t; @@ -94,7 +93,7 @@ int argvSort(ARGV_t argv, int (*compar)(const void *, const void *)); * @param compar strcmp-like comparison function, or NULL for argvCmp() * @return found string (NULL on failure) */ -ARGV_t argvSearch(ARGV_t argv, ARGstr_t val, +ARGV_t argvSearch(ARGV_t argv, const char *val, int (*compar)(const void *, const void *)); /** \ingroup rpmargv @@ -112,7 +111,7 @@ int argiAdd(ARGI_t * argip, int ix, int val); * @param val string arg to append * @return 0 always */ -int argvAdd(ARGV_t * argvp, ARGstr_t val); +int argvAdd(ARGV_t * argvp, const char *val); /** \ingroup rpmargv * Append one argv array to another. |