summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-06-04 06:53:43 +0000
committerAndrew Tridgell <tridge@samba.org>1996-06-04 06:53:43 +0000
commit5607ff396c375976e440f9c955a313ddd58e3bbd (patch)
treec8879d96bb77d20165723dbe01e40c542dda3ab6 /source3
parenta2c1623827406667a4f2f058c24f1d971f6627f8 (diff)
downloadsamba-5607ff396c375976e440f9c955a313ddd58e3bbd.tar.gz
samba-5607ff396c375976e440f9c955a313ddd58e3bbd.tar.bz2
samba-5607ff396c375976e440f9c955a313ddd58e3bbd.zip
add dummy quotas fn
fix typo in reply to backup lists (This used to be commit bc4a2994377ab078d3d1a900f79fda9dfe4d0e6a)
Diffstat (limited to 'source3')
-rw-r--r--source3/namework.c70
-rw-r--r--source3/script/mkproto.awk2
-rw-r--r--source3/smbd/quotas.c4
3 files changed, 39 insertions, 37 deletions
diff --git a/source3/namework.c b/source3/namework.c
index e28a1cbf95..91215ec45d 100644
--- a/source3/namework.c
+++ b/source3/namework.c
@@ -625,45 +625,43 @@ static void process_rcv_backup_list(struct packet_struct *p,char *buf)
******************************************************************/
static void process_send_backup_list(struct packet_struct *p,char *buf)
{
- struct dgram_packet *dgram = &p->packet.dgram;
- struct in_addr ip = dgram->header.source_ip;
- struct domain_record *d; /* = find_domain(ip); */
- struct work_record *work;
-
- int count = CVAL(buf,0);
- int token = SVAL(buf,1); /* sender's key index for the workgroup? */
- int info = SVAL(buf,3); /* XXXX don't know: some sort of info */
- int name_type = dgram->dest_name.name_type;
-
- DEBUG(0,("Send Backup request to %s token=%d info = %x count=%d\n",
- namestr(&dgram->dest_name), token, info, count));
-
- if (same_context(dgram)) return;
-
- if (count <= 0) return;
-
- if (!d) return;
+ struct dgram_packet *dgram = &p->packet.dgram;
+ struct in_addr ip = dgram->header.source_ip;
+ struct domain_record *d; /* = find_domain(ip); */
+ struct work_record *work;
- if (name_type != 0x1b && name_type != 0x1d)
- {
- DEBUG(0, ("backup request to wrong type %d\n", name_type));
- return;
- }
+ int count = CVAL(buf,0);
+ int token = SVAL(buf,1); /* sender's key index for the workgroup? */
+ int info = SVAL(buf,3); /* XXXX don't know: some sort of info */
+ int name_type = dgram->dest_name.name_type;
- for (d = domainlist; d; d = d->next)
+ DEBUG(0,("Send Backup request to %s token=%d info = %x count=%d\n",
+ namestr(&dgram->dest_name), token, info, count));
+
+ if (same_context(dgram)) return;
+
+ if (count <= 0) return;
+
+ if (name_type != 0x1b && name_type != 0x1d)
+ {
+ DEBUG(0, ("backup request to wrong type %d\n", name_type));
+ return;
+ }
+
+ for (d = domainlist; d; d = d->next)
+ {
+ for (work = d->workgrouplist; work; work = work->next)
{
- for (work = d->workgrouplist; work; work = work->next)
- {
- if (strequal(work->work_group, dgram->dest_name.name))
- {
- DEBUG(3, ("found workgroup %s(%d)\n",
- work->work_group, work->token));
- send_backup_list(work->work_group,&dgram->source_name,
- count,token,info,name_type,ip);
- return;
- }
- }
- }
+ if (strequal(work->work_group, dgram->dest_name.name))
+ {
+ DEBUG(3, ("found workgroup %s(%d)\n",
+ work->work_group, work->token));
+ send_backup_list(work->work_group,&dgram->source_name,
+ count,token,info,name_type,ip);
+ return;
+ }
+ }
+ }
}
diff --git a/source3/script/mkproto.awk b/source3/script/mkproto.awk
index 4bf0d3c37d..d7b042652d 100644
--- a/source3/script/mkproto.awk
+++ b/source3/script/mkproto.awk
@@ -1,5 +1,5 @@
# generate prototypes for Samba C code
-
+# tridge, June 1996
BEGIN {
inheader=0;
diff --git a/source3/smbd/quotas.c b/source3/smbd/quotas.c
index 81f2dcaab5..d5be15264e 100644
--- a/source3/smbd/quotas.c
+++ b/source3/smbd/quotas.c
@@ -355,5 +355,9 @@ static BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
}
#endif
+
+#else
+/* this keeps fussy compilers happy */
+ void quotas_dummy(void) {}
#endif /* QUOTAS */