svn commit: samba r7856 - in
branches/SAMBA_4_0/source/libcli/resolve: .
tridge at samba.org
tridge at samba.org
Fri Jun 24 00:04:27 GMT 2005
Author: tridge
Date: 2005-06-24 00:04:26 +0000 (Fri, 24 Jun 2005)
New Revision: 7856
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7856
Log:
fixed warning of 'methods' shadowed variable
Modified:
branches/SAMBA_4_0/source/libcli/resolve/resolve.c
Changeset:
Modified: branches/SAMBA_4_0/source/libcli/resolve/resolve.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/resolve/resolve.c 2005-06-24 00:03:47 UTC (rev 7855)
+++ branches/SAMBA_4_0/source/libcli/resolve/resolve.c 2005-06-24 00:04:26 UTC (rev 7856)
@@ -40,7 +40,7 @@
struct composite_context *(*send_fn)(struct nbt_name *, struct event_context *);
NTSTATUS (*recv_fn)(struct composite_context *, TALLOC_CTX *, const char **);
-} methods[] = {
+} resolve_methods[] = {
{ "bcast", resolve_name_bcast_send, resolve_name_bcast_recv },
{ "wins", resolve_name_wins_send, resolve_name_wins_recv },
{ "host", resolve_name_host_send, resolve_name_host_recv }
@@ -54,9 +54,9 @@
{
int i;
if (name == NULL) return NULL;
- for (i=0;i<ARRAY_SIZE(methods);i++) {
- if (strcasecmp(name, methods[i].name) == 0) {
- return &methods[i];
+ for (i=0;i<ARRAY_SIZE(resolve_methods);i++) {
+ if (strcasecmp(name, resolve_methods[i].name) == 0) {
+ return &resolve_methods[i];
}
}
return NULL;
More information about the samba-cvs
mailing list