summaryrefslogtreecommitdiff
path: root/rpmio/argv.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-04-07 09:31:21 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-04-07 12:19:41 +0300
commitd728ec28dcb51a139859e4fed48da894a8363a51 (patch)
tree1e210e8e97c563999f6909fa525972777a58101f /rpmio/argv.c
parenta5533d9604770d16942e44d8c68cd28228bc3d2b (diff)
downloadlibrpm-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.c')
-rw-r--r--rpmio/argv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmio/argv.c b/rpmio/argv.c
index c39c9d118..2e26c93be 100644
--- a/rpmio/argv.c
+++ b/rpmio/argv.c
@@ -76,8 +76,8 @@ ARGV_t argvData(const ARGV_t argv)
int argvCmp(const void * a, const void * b)
{
- ARGstr_t astr = *(ARGV_t)a;
- ARGstr_t bstr = *(ARGV_t)b;
+ const char *astr = *(ARGV_t)a;
+ const char *bstr = *(ARGV_t)b;
return strcmp(astr, bstr);
}
@@ -89,7 +89,7 @@ int argvSort(ARGV_t argv, int (*compar)(const void *, const void *))
return 0;
}
-ARGV_t argvSearch(ARGV_t argv, ARGstr_t val,
+ARGV_t argvSearch(ARGV_t argv, const char *val,
int (*compar)(const void *, const void *))
{
if (argv == NULL)
@@ -120,7 +120,7 @@ int argiAdd(ARGI_t * argip, int ix, int val)
return 0;
}
-int argvAdd(ARGV_t * argvp, ARGstr_t val)
+int argvAdd(ARGV_t * argvp, const char *val)
{
ARGV_t argv;
int argc;