From 370664344a138ada6779dab23fa31bc4e0794e1a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 23 Mar 2001 19:01:27 +0000 Subject: Fix insure-found parameter size missmatch. Jeremy. (This used to be commit 2f658691e47406f38bec2fc20951f82043fbf894) --- source3/include/proto.h | 2 +- source3/nmbd/nmbd_workgroupdb.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/include/proto.h b/source3/include/proto.h index 9d7ec27f95..4fb816d70d 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1519,7 +1519,7 @@ void wins_write_database(BOOL background); struct work_record *find_workgroup_on_subnet(struct subnet_record *subrec, const char *name); struct work_record *create_workgroup_on_subnet(struct subnet_record *subrec, - fstring name, int ttl); + const char *name, int ttl); void update_workgroup_ttl(struct work_record *work, int ttl); void initiate_myworkgroup_startup(struct subnet_record *subrec, struct work_record *work); void dump_workgroups(BOOL force_write); diff --git a/source3/nmbd/nmbd_workgroupdb.c b/source3/nmbd/nmbd_workgroupdb.c index 485253680b..01477c8113 100644 --- a/source3/nmbd/nmbd_workgroupdb.c +++ b/source3/nmbd/nmbd_workgroupdb.c @@ -52,7 +52,7 @@ static void add_workgroup(struct subnet_record *subrec, struct work_record *work Create an empty workgroup. **************************************************************************/ -static struct work_record *create_workgroup(char *name, int ttl) +static struct work_record *create_workgroup(const char *name, int ttl) { struct work_record *work; struct subnet_record *subrec; @@ -180,7 +180,7 @@ struct work_record *find_workgroup_on_subnet(struct subnet_record *subrec, **************************************************************************/ struct work_record *create_workgroup_on_subnet(struct subnet_record *subrec, - fstring name, int ttl) + const char *name, int ttl) { struct work_record *work = NULL; -- cgit