PERFORCE change 95786 for review

soc-bushman soc-bushman at FreeBSD.org
Fri Apr 21 11:33:45 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=95786

Change 95786 by soc-bushman at soc-bushman_stinger on 2006/04/21 11:32:45

	cached.conf added to /etc + parameters order fixed in host_id, host_marhsal and host_unmarshal functions

Affected files ...

.. //depot/projects/soc2005/nsswitch_cached/src/etc/cached.conf#1 branch
.. //depot/projects/soc2005/nsswitch_cached/src/lib/libc/net/gethostnamadr.c#9 edit

Differences ...

==== //depot/projects/soc2005/nsswitch_cached/src/lib/libc/net/gethostnamadr.c#9 (text+ko) ====

@@ -365,7 +365,6 @@
 	char *str;
 	int len, type;
 	struct hostent *ht;
-	struct hostent_data *ht_data;
 		
 	char *p;	
 	char **iter;
@@ -388,10 +387,8 @@
 	}
 	
 	ht = va_arg(ap, struct hostent *);
-	ht_data = va_arg(ap, struct hostent_data *);
-
-	orig_buf = ht_data->hostbuf;
-	orig_buf_size = sizeof(ht_data->hostbuf);
+	orig_buf = va_arg(ap, char *);
+	orig_buf_size = va_arg(ap, size_t);
 
 	if (orig_buf_size < 
 		buffer_size - sizeof(struct hostent) - sizeof(char *)) {


More information about the p4-projects mailing list