svn commit: samba r10024 - in
branches/tmp/vl-cluster/source/locking: .
vlendec at samba.org
vlendec at samba.org
Sun Sep 4 09:27:57 GMT 2005
Author: vlendec
Date: 2005-09-04 09:27:56 +0000 (Sun, 04 Sep 2005)
New Revision: 10024
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10024
Log:
Fix some formatting
Modified:
branches/tmp/vl-cluster/source/locking/locking.c
Changeset:
Modified: branches/tmp/vl-cluster/source/locking/locking.c
===================================================================
--- branches/tmp/vl-cluster/source/locking/locking.c 2005-09-04 09:00:47 UTC (rev 10023)
+++ branches/tmp/vl-cluster/source/locking/locking.c 2005-09-04 09:27:56 UTC (rev 10024)
@@ -403,12 +403,14 @@
static void print_share_mode_table(struct locking_data *data)
{
int num_share_modes = data->u.s.num_share_mode_entries;
- struct share_mode_entry *shares = (struct share_mode_entry *)(data + 1);
+ struct share_mode_entry *shares =
+ (struct share_mode_entry *)(data + 1);
int i;
for (i = 0; i < num_share_modes; i++) {
struct share_mode_entry *entry_p = &shares[i];
- DEBUG(10,("print_share_mode_table: %s\n", share_mode_str(i, entry_p)));
+ DEBUG(10,("print_share_mode_table: %s\n",
+ share_mode_str(i, entry_p)));
}
}
@@ -432,7 +434,7 @@
return;
}
- lck->share_modes = talloc_memdup(lck, dbuf.dptr + sizeof(*data),
+ lck->share_modes = talloc_memdup(lck, dbuf.dptr + sizeof(*data),
lck->num_share_modes *
sizeof(struct share_mode_entry));
@@ -500,8 +502,10 @@
data->u.s.delete_on_close = lck->delete_on_close;
memcpy(result.dptr + sizeof(*data), lck->share_modes,
sizeof(struct share_mode_entry)*lck->num_share_modes);
- offset = sizeof(*data) + sizeof(struct share_mode_entry)*lck->num_share_modes;
- safe_strcpy(result.dptr + offset, lck->filename, result.dsize - offset - 1);
+ offset = sizeof(*data) +
+ sizeof(struct share_mode_entry)*lck->num_share_modes;
+ safe_strcpy(result.dptr + offset, lck->filename,
+ result.dsize - offset - 1);
print_share_mode_table(data);
return result;
}
@@ -618,7 +622,8 @@
Fill a share mode entry.
********************************************************************/
-static void fill_share_mode_entry(struct share_mode_entry *e, files_struct *fsp,
+static void fill_share_mode_entry(struct share_mode_entry *e,
+ files_struct *fsp,
uint16 mid, uint16 op_type)
{
ZERO_STRUCTP(e);
More information about the samba-cvs
mailing list