]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
util/charset: Remove trailing whitespace
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 8 Nov 2023 23:31:22 +0000 (12:31 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Nov 2023 22:07:36 +0000 (22:07 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/charset/charset.h
lib/util/charset/util_unistr.c

index 391430b0cf5780a4edd89f565ee43545b1f4c78f..e8dec6ae0d6be150f2fd70cf100f2e20105d5685 100644 (file)
@@ -1,25 +1,25 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    charset defines
    Copyright (C) Andrew Tridgell 2001
    Copyright (C) Jelmer Vernooij 2002
-   
+
    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
    the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
-   
+
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
-   
+
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-/* This is a public header file that is installed as part of Samba. 
- * If you remove any functions or change their signature, update 
+/* This is a public header file that is installed as part of Samba.
+ * If you remove any functions or change their signature, update
  * the so version number. */
 
 #ifndef __CHARSET_H__
@@ -181,13 +181,13 @@ bool pull_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src, size_t *con
 ssize_t push_string(void *dest, const char *src, size_t dest_len, int flags);
 ssize_t pull_string(char *dest, const void *src, size_t dest_len, size_t src_len, int flags);
 
-bool convert_string_talloc(TALLOC_CTX *ctx, 
-                          charset_t from, charset_t to, 
-                          void const *src, size_t srclen, 
+bool convert_string_talloc(TALLOC_CTX *ctx,
+                          charset_t from, charset_t to,
+                          void const *src, size_t srclen,
                           void *dest, size_t *converted_size);
 
 bool convert_string(charset_t from, charset_t to,
-                     void const *src, size_t srclen, 
+                     void const *src, size_t srclen,
                      void *dest, size_t destlen,
                      size_t *converted_size);
 bool convert_string_error(charset_t from, charset_t to,
@@ -196,8 +196,8 @@ bool convert_string_error(charset_t from, charset_t to,
                          size_t *converted_size);
 
 struct smb_iconv_handle *get_iconv_handle(void);
-struct smb_iconv_handle *get_iconv_testing_handle(TALLOC_CTX *mem_ctx, 
-                                                 const char *dos_charset, 
+struct smb_iconv_handle *get_iconv_testing_handle(TALLOC_CTX *mem_ctx,
+                                                 const char *dos_charset,
                                                  const char *unix_charset,
                                                  bool use_builtin_handlers);
 struct smb_iconv_handle *reinit_iconv_handle(TALLOC_CTX *mem_ctx,
@@ -239,7 +239,7 @@ struct smb_iconv_handle *smb_iconv_handle_reinit(TALLOC_CTX *mem_ctx,
 
 bool convert_string_handle(struct smb_iconv_handle *ic,
                                charset_t from, charset_t to,
-                               void const *src, size_t srclen, 
+                               void const *src, size_t srclen,
                                void *dest, size_t destlen, size_t *converted_size);
 bool convert_string_error_handle(struct smb_iconv_handle *ic,
                                 charset_t from, charset_t to,
@@ -249,16 +249,16 @@ bool convert_string_error_handle(struct smb_iconv_handle *ic,
 
 bool convert_string_talloc_handle(TALLOC_CTX *ctx,
                                       struct smb_iconv_handle *ic,
-                                      charset_t from, charset_t to, 
-                                      void const *src, size_t srclen, 
+                                      charset_t from, charset_t to,
+                                      void const *src, size_t srclen,
                                       void *dest, size_t *converted_size);
 /* iconv */
 smb_iconv_t smb_iconv_open(const char *tocode, const char *fromcode);
 int smb_iconv_close(smb_iconv_t cd);
-size_t smb_iconv(smb_iconv_t cd, 
+size_t smb_iconv(smb_iconv_t cd,
                 const char **inbuf, size_t *inbytesleft,
                 char **outbuf, size_t *outbytesleft);
-smb_iconv_t smb_iconv_open_ex(TALLOC_CTX *mem_ctx, const char *tocode, 
+smb_iconv_t smb_iconv_open_ex(TALLOC_CTX *mem_ctx, const char *tocode,
                              const char *fromcode, bool use_builtin_handlers);
 
 void smb_init_locale(void);
index ac80f902362043537f9f9f53b50b145e2261518e..3a6c48f3749c9d3fae4f32623b2e93bc217886d2 100644 (file)
@@ -1,19 +1,19 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    Samba utility functions
    Copyright (C) Andrew Tridgell 1992-2001
    Copyright (C) Simo Sorce 2001
-   
+
    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
    the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
-   
+
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
-   
+
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -521,7 +521,7 @@ static size_t pull_ucs2(char *dest, const void *src, size_t dest_len, size_t src
 
 /**
  Copy a string from a char* src to a unicode or ascii
- dos codepage destination choosing unicode or ascii based on the 
+ dos codepage destination choosing unicode or ascii based on the
  flags in the SMB buffer starting at base_ptr.
  Return the number of bytes occupied by the string in the destination.
  flags can have: