From 4838055e5f300ec5c9e09ac5ebb9d661fa9a7cd1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 8 Apr 2007 19:41:47 +0000 Subject: r22132: I hate inefficiency. Don't call conv_str_size() on every pread/sendfile call, initialize these variables in an allocated struct at connection time and just refer to them directly. Jeremy. (This used to be commit 85df3fca681a44c882f596ef042ad9956c3a63c0) --- source3/smbd/vfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/vfs.c') diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 82ea602187..0803ffb7e7 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -174,7 +174,7 @@ BOOL vfs_init_custom(connection_struct *conn, const char *vfs_object) DEBUG(5, ("Checking operation #%d (type %d, layer %d)\n", i, ops[i].type, ops[i].layer)); if(ops[i].layer == SMB_VFS_LAYER_OPAQUE) { /* If this operation was already made opaque by different module, it - * will be overridded here. + * will be overridden here. */ DEBUGADD(5, ("Making operation type %d opaque [module %s]\n", ops[i].type, vfs_object)); vfs_set_operation(&conn->vfs_opaque, ops[i].type, handle, ops[i].op); -- cgit