projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c499a0b
)
Eliminate two dead increments in rpmrc platform processing
author
Panu Matilainen
<pmatilai@redhat.com>
Fri, 27 May 2011 06:35:22 +0000
(09:35 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Fri, 27 May 2011 12:05:16 +0000
(15:05 +0300)
lib/rpmrc.c
patch
|
blob
|
history
diff --git
a/lib/rpmrc.c
b/lib/rpmrc.c
index
7882af2
..
66d7b77
100644
(file)
--- a/
lib/rpmrc.c
+++ b/
lib/rpmrc.c
@@
-670,7
+670,7
@@
static rpmRC rpmPlatform(const char * platform)
while (*p && !(*p == '-' || isspace(*p)))
p++;
if (*p != '-') {
- if (*p != '\0') *p
++
= '\0';
+ if (*p != '\0') *p = '\0';
os = vendor;
vendor = "unknown";
} else {
@@
-686,7
+686,7
@@
static rpmRC rpmPlatform(const char * platform)
while (*p && !(*p == '-' || isspace(*p)))
p++;
}
- if (*p != '\0') *p
++
= '\0';
+ if (*p != '\0') *p = '\0';
}
addMacro(NULL, "_host_cpu", NULL, cpu, -1);