The branch, master has been updated via e94361e1e29d015e9cdfde47f7163d1dd7bb596a (commit) via d3a6914e3b3f04b0f2ec2c27995cb7e3975f5d27 (commit) via 9dae2501f1ef21c12385e3abd53c04fdabbed3e9 (commit) from 3dd404abad878fa7e760ba50ce84fc80b82ea159 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit e94361e1e29d015e9cdfde47f7163d1dd7bb596a Author: Volker Lendecke <v...@samba.org> Date: Mon Sep 14 22:47:31 2009 +0200 s3:vfs_catia: Make some fns static commit d3a6914e3b3f04b0f2ec2c27995cb7e3975f5d27 Author: Volker Lendecke <v...@samba.org> Date: Mon Sep 14 22:28:11 2009 +0200 s3:vfs_catia: Use talloc_zero for simplification commit 9dae2501f1ef21c12385e3abd53c04fdabbed3e9 Author: Volker Lendecke <v...@samba.org> Date: Mon Sep 14 22:22:26 2009 +0200 s3:vfs_modules: Fix Coverity ID 946: OVERRUN_STATIC Tim, please check! ----------------------------------------------------------------------- Summary of changes: source3/modules/vfs_catia.c | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c index 3c1ab81..0917812 100644 --- a/source3/modules/vfs_catia.c +++ b/source3/modules/vfs_catia.c @@ -55,13 +55,12 @@ static bool build_table(struct char_mappings **cmaps, int value) int i; int start = T_START(value); - (*cmaps) = (struct char_mappings *) - TALLOC_ZERO(NULL, sizeof(struct char_mappings)); + (*cmaps) = talloc_zero(NULL, struct char_mappings); if (!*cmaps) return False; - for (i = 0; i <= MAP_SIZE;i++) { + for (i = 0; i < MAP_SIZE;i++) { (*cmaps)->entry[i][TO_UNIX] = start + i; (*cmaps)->entry[i][TO_WINDOWS] = start + i; } @@ -104,8 +103,8 @@ static bool build_ranges(struct char_mappings **cmaps, return True; } -struct share_mapping_entry *get_srt(connection_struct *conn, - struct share_mapping_entry **global) +static struct share_mapping_entry *get_srt(connection_struct *conn, + struct share_mapping_entry **global) { struct share_mapping_entry *share; @@ -120,7 +119,7 @@ struct share_mapping_entry *get_srt(connection_struct *conn, return share; } -struct share_mapping_entry *add_srt(int snum, const char **mappings) +static struct share_mapping_entry *add_srt(int snum, const char **mappings) { char *tmp; -- Samba Shared Repository