diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 15:11:04 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 15:11:04 +0300 |
commit | df960a66cf67fc7ad98bac7859445b10d7a0f0d4 (patch) | |
tree | 249102bd76f4a87541f7b12d9119cbc23eb751bb /rpmbuild.c | |
parent | 0e4d3de13191647c1dfb8f6608233a3feef437cf (diff) | |
download | librpm-tizen-df960a66cf67fc7ad98bac7859445b10d7a0f0d4.tar.gz librpm-tizen-df960a66cf67fc7ad98bac7859445b10d7a0f0d4.tar.bz2 librpm-tizen-df960a66cf67fc7ad98bac7859445b10d7a0f0d4.zip |
void stepping on toes of relatives, part 5
- Eliminate remaining (hopefully) C++ reserved keywords in rpmbuild cli tool
Diffstat (limited to 'rpmbuild.c')
-rw-r--r-- | rpmbuild.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmbuild.c b/rpmbuild.c index 975364e6c..ad62a13e5 100644 --- a/rpmbuild.c +++ b/rpmbuild.c @@ -289,7 +289,7 @@ static char * getTarSpec(const char *arg) char *specDir; char *specBase; char *tmpSpecFile; - const char **try; + const char **spec; char tarbuf[BUFSIZ]; int gotspec = 0, res; static const char *tryspec[] = { "Specfile", "\\*.spec", NULL }; @@ -299,12 +299,12 @@ static char * getTarSpec(const char *arg) (void) close(mkstemp(tmpSpecFile)); - for (try = tryspec; *try != NULL; try++) { + for (spec = tryspec; *spec != NULL; spec++) { FILE *fp; char *cmd; cmd = rpmExpand("%{uncompress: ", arg, "} | ", - "%{__tar} xOvf - --wildcards ", *try, + "%{__tar} xOvf - --wildcards ", *spec, " 2>&1 > ", tmpSpecFile, NULL); if (!(fp = popen(cmd, "r"))) { |