summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_catia.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/modules/vfs_catia.c')
-rw-r--r--source3/modules/vfs_catia.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c
index 3c1ab81dc0..0917812ee2 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;