]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Add some casts so that the C++ compiler does not complain
authorMichael Schroeder <mls@suse.de>
Wed, 19 Sep 2018 16:20:57 +0000 (18:20 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 19 Sep 2018 16:20:57 +0000 (18:20 +0200)
src/repodata.h

index 3ac7e5b1e5f5725c338d39f47518b6bfe0663beb..e255c928d61c021b1c84810940ed1ffd89baf6b1 100644 (file)
@@ -343,13 +343,13 @@ repodata_translate_dir(Repodata *data, Repodata *fromdata, Id dir, int create, I
 static inline Id *
 repodata_create_dirtranscache(Repodata *data)
 {
-  return solv_calloc(256, sizeof(Id) * 2);
+  return (Id *)solv_calloc(256, sizeof(Id) * 2);
 }
 
 static inline Id *
 repodata_free_dirtranscache(Id *cache)
 {
-  return solv_free(cache);
+  return (Id *)solv_free(cache);
 }