summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-05-14 03:20:42 +0000
committerJeremy Allison <jra@samba.org>1998-05-14 03:20:42 +0000
commitbce6d410130982af6ca58dc9a0d297b5f80e6c6c (patch)
tree404cb8ff43382551d9aa0f293882c089935d126f /source3/libsmb
parenta4276507e43487f47445eab11d4ac1b080b3270e (diff)
downloadsamba-bce6d410130982af6ca58dc9a0d297b5f80e6c6c.tar.gz
samba-bce6d410130982af6ca58dc9a0d297b5f80e6c6c.tar.bz2
samba-bce6d410130982af6ca58dc9a0d297b5f80e6c6c.zip
namequery.c: Fixed SGI IRIX 5.x compiler problem.
server.c: Added MACHINE.SID file generation - use lp_domain_sid() be default. smbpass.c: Exposed do_file_lock() as I now use it in server.c Jeremy. (This used to be commit 5bf17840ac7d65d08dd3fdfe8b789010488f6808)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/namequery.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 7f3d012c30..a578ad8947 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -552,7 +552,9 @@ BOOL resolve_name(char *name, struct in_addr *return_ip)
* the first successful match.
*/
for( i = 0; i < num_interfaces; i++) {
- struct in_addr sendto_ip = *iface_bcast(*iface_n_ip(i));
+ struct in_addr sendto_ip;
+ /* Done this way to fix compiler error on IRIX 5.x */
+ sendto_ip = *iface_bcast(*iface_n_ip(i));
iplist = name_query(sock, name, 0x20, True, False, sendto_ip, &count, NULL);
if(iplist != NULL) {
*return_ip = iplist[0];