These are all from string matching where the return value will now be
constified if the input argument was.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
int vendor_length = strlen(vendor);
// Cut off suffix if it contains spaces
- char* space = strchr(vendor, ' ');
+ const char* space = strchr(vendor, ' ');
if (space)
vendor_length = space - vendor;
pakfire_ctx* ctx, pakfire_cgroup* parent, const char* name, int flags) {
pakfire_cgroup* child = NULL;
char buffer[NAME_MAX];
- char* p = NULL;
+ const char* p = NULL;
int r;
// Name cannot be empty
}
int pakfire_string_partition(const char* s, const char* delim, char** s1, char** s2) {
- char* p = strstr(s, delim);
+ const char* p = strstr(s, delim);
// Delim was not found
if (!p) {