fixed solaris compilation error (don't add to a void*)
authorAndrew Tridgell <tridge@samba.org>
Tue, 5 Jun 2001 02:00:47 +0000 (02:00 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 5 Jun 2001 02:00:47 +0000 (02:00 +0000)
source/nsswitch/winbind_nss.c

index 04b576a7a53660cfc79ced1d785f2a822c72c2f2..5e3e77517cfad1198b16a53884291a0a371a7ccb 100644 (file)
@@ -632,8 +632,8 @@ _nss_winbind_getgrent_r(struct group *result,
                        num_gr_cache * sizeof(struct winbindd_gr);
 
                ret = fill_grent(result, &gr_cache[ndx_gr_cache],
-                                (char *)(getgrent_response.extra_data +
-                                         mem_ofs), &buffer, &buflen);
+                                ((char *)getgrent_response.extra_data)+mem_ofs,
+                                &buffer, &buflen);
                
                /* Out of memory - try again */