# #
#############################################################################*/
-#include <assert.h>
#include <linux/limits.h>
#include <stdlib.h>
#include <string.h>
if (e) {
long int converted = strtol(e, &endptr, 10);
- assert(converted > 0);
- assert(*endptr == '\0');
epoch = converted;
}
# #
#############################################################################*/
-#include <assert.h>
#include <stdlib.h>
#include <solv/pooltypes.h>
return NULL;
if (evr) {
- assert(cmp_type);
-
Id ievr = pool_str2id(p, evr, 1);
int flags = cmptype2relflags(cmp_type);
id = pool_rel2id(p, id, ievr, flags, 1);
# #
#############################################################################*/
-#include <assert.h>
#include <errno.h>
#include <fts.h>
#include <linux/limits.h>
# #
#############################################################################*/
-#include <assert.h>
#include <stdlib.h>
#include <solv/pool.h>
return PAKFIRE_E_SELECTOR;
}
- assert(filter);
-
pakfire_selector_replace_filter(filter, keyname, cmp_type, match);
return 0;
if (f == NULL)
return 0;
- assert(f->cmp_type == PAKFIRE_EQ);
+ if (f->cmp_type != PAKFIRE_EQ)
+ return 1;
Pool* pool = pakfire_get_solv_pool(pakfire);
Id archid = str2archid(pool, f->match);
if (f == NULL)
return 0;
- assert(f->cmp_type == PAKFIRE_EQ);
+ if (f->cmp_type != PAKFIRE_EQ)
+ return 1;
Pool* pool = pakfire_get_solv_pool(pakfire);
Id evr = pool_str2id(pool, f->match, 1);
# #
#############################################################################*/
-#include <assert.h>
#include <stdlib.h>
#include <solv/policy.h>
if (p > s)
*(p-1) = '\0';
- // Make sure that we wrote the string exactly to
- // the last character
- assert((s + length) == p);
-
return strdup(s);
}
# #
#############################################################################*/
-#include <assert.h>
#include <errno.h>
#include <stdlib.h>
}
static void pakfire_transaction_add_headline(char** str, size_t width, const char* headline) {
- assert(headline);
-
asprintf(str, "%s%s\n", *str, headline);
}