From c615ebed6e3d273a682806b952d543e834e5630d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 13 May 2011 20:21:30 +0200 Subject: s3-lib Replace StrCaseCmp() with strcasecmp_m() strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett --- source3/registry/reg_parse_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/registry/reg_parse_internal.c') diff --git a/source3/registry/reg_parse_internal.c b/source3/registry/reg_parse_internal.c index dedbe123d8..721a19c112 100644 --- a/source3/registry/reg_parse_internal.c +++ b/source3/registry/reg_parse_internal.c @@ -308,7 +308,7 @@ int write_bom(FILE* file, const char* charset, charset_t ctype) DEBUG(0, ("No Byte Order Mark for charset_t: %u\n", (unsigned)ctype)); } else { for (i=0; BOM[i].name; i++) { - if (StrCaseCmp(BOM[i].name, charset) == 0) { + if (strcasecmp_m(BOM[i].name, charset) == 0) { return fwrite(BOM[i].seq, 1, BOM[i].len, file); } } -- cgit From 241ed0a04247d5062926443a8a3a481697299e60 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sat, 11 Jun 2011 00:20:57 +0200 Subject: s3:registry/reg_parse_internal.c: add copyright information --- source3/registry/reg_parse_internal.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/registry/reg_parse_internal.c') diff --git a/source3/registry/reg_parse_internal.c b/source3/registry/reg_parse_internal.c index 721a19c112..208844856f 100644 --- a/source3/registry/reg_parse_internal.c +++ b/source3/registry/reg_parse_internal.c @@ -1,4 +1,9 @@ -/* * Samba Unix/Linux SMB client library +/* + * Unix SMB/CIFS implementation. + * + * Registry helper routines + * + * Copyright (C) Gregor Beck 2010 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by -- cgit