From: Andre Noll Date: Thu, 5 Mar 2020 17:50:55 +0000 (+0100) Subject: afs.c: Remove two pointless casts. X-Git-Tag: v0.6.3~25 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=9b0f28f5286a1cc8aa5c4a886aadf25900d475ba;hp=53fe4aa13235ec51f8289b167bd429e405f2817b afs.c: Remove two pointless casts. The type of ->data is void *, so no casts are needed. --- diff --git a/afs.c b/afs.c index d9cddeb8..04eed550 100644 --- a/afs.c +++ b/afs.c @@ -366,8 +366,8 @@ int for_each_matching_row(struct pattern_match_data *pmd) */ int string_compare(const struct osl_object *obj1, const struct osl_object *obj2) { - const char *str1 = (const char *)obj1->data; - const char *str2 = (const char *)obj2->data; + const char *str1 = obj1->data; + const char *str2 = obj2->data; return strncmp(str1, str2, PARA_MIN(obj1->size, obj2->size)); }