summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Murzov2011-09-12 00:22:08 +0400
committerJason Woodward2011-09-12 09:39:30 +0000
commitd607b996b87e0f29b174558b83290c1654b59378 (patch)
treeda3542e5386a3775c8c7f8c4d2a224b4426fa4ff
parent921a2afaea772a08493801678cceb566351a914b (diff)
downloadslapt-get-d607b996b87e0f29b174558b83290c1654b59378.tar.gz
Fix typo
spotted by cppcheck: [src/action.c:775] -> [src/action.c:775]: (style) Same expression on both sides of '||'.
-rw-r--r--src/action.c2
-rw-r--r--src/configuration.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/action.c b/src/action.c
index ad7f484..9712a73 100644
--- a/src/action.c
+++ b/src/action.c
@@ -772,7 +772,7 @@ static int cmp_pkg_arch(const char *a,const char *b)
slapt_execute_regex(a_arch_regex,a);
slapt_execute_regex(b_arch_regex,b);
- if (a_arch_regex->reg_return != 0 || a_arch_regex->reg_return != 0) {
+ if (a_arch_regex->reg_return != 0 || b_arch_regex->reg_return != 0) {
slapt_free_regex(a_arch_regex);
slapt_free_regex(b_arch_regex);
diff --git a/src/configuration.c b/src/configuration.c
index 12c087e..859dcb7 100644
--- a/src/configuration.c
+++ b/src/configuration.c
@@ -69,7 +69,7 @@ slapt_rc_config *slapt_read_rc_config(const char *file_name)
char *token_ptr = NULL;
getline_buffer[g_size - 1] = '\0';
- /* check to see if it has our key and value seperated by our token */
+ /* check to see if it has our key and value separated by our token */
/* and extract them */
if ( (strchr(getline_buffer,'#') != NULL) && (strstr(getline_buffer, SLAPT_DISABLED_SOURCE_TOKEN) == NULL) )
continue;