From: Andreas Schneider Date: Thu, 14 Jul 2022 06:05:07 +0000 (+0200) Subject: lib:util: Remove trailing whitespaces in samba_util.h X-Git-Tag: samba-4.17.0rc1~202 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9fcd1b7498e3d32c4edfbdbb52141392fd03c692;p=thirdparty%2Fsamba.git lib:util: Remove trailing whitespaces in samba_util.h Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h index ac185cc06c5..b30435b4362 100644 --- a/lib/util/samba_util.h +++ b/lib/util/samba_util.h @@ -1,19 +1,19 @@ -/* +/* Unix SMB/CIFS implementation. Utility functions for Samba Copyright (C) Andrew Tridgell 1992-1999 Copyright (C) Jelmer Vernooij 2005 - + 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 . */ @@ -67,7 +67,7 @@ extern const char *panic_action; _PUBLIC_ void dump_core_setup(const char *progname, const char *logfile); /** - register a fault handler. + register a fault handler. Should only be called once in the execution of smbd. */ _PUBLIC_ bool register_fault_handler(const char *name, void (*fault_handler)(int sig)); @@ -234,8 +234,8 @@ _PUBLIC_ _PURE_ size_t count_chars(const char *s, char c); **/ _PUBLIC_ size_t strhex_to_str(char *p, size_t p_len, const char *strhex, size_t strhex_len); -/** - * Parse a hex string and return a data blob. +/** + * Parse a hex string and return a data blob. */ _PUBLIC_ DATA_BLOB strhex_to_data_blob(TALLOC_CTX *mem_ctx, const char *strhex) ; @@ -262,7 +262,7 @@ _PUBLIC_ char *hex_encode_talloc(TALLOC_CTX *mem_ctx, const unsigned char *buff_ _PUBLIC_ char *rfc1738_unescape(char *buf); /** - * rfc1738_escape_part + * rfc1738_escape_part * Returns a static buffer that contains the RFC * 1738 compliant, escaped version of the given url segment. (escapes * unsafe, reserved and % chars) It would mangle the :// in http://, @@ -284,7 +284,7 @@ _PUBLIC_ size_t ascii_len_n(const char *src, size_t n); /** Set a boolean variable from the text value stored in the passed string. - Returns true in success, false if the passed string does not correctly + Returns true in success, false if the passed string does not correctly represent a boolean. **/ _PUBLIC_ bool set_boolean(const char *boolean_string, bool *boolean); @@ -299,7 +299,7 @@ _PUBLIC_ bool set_boolean(const char *boolean_string, bool *boolean); _PUBLIC_ bool conv_str_bool(const char * str, bool * val); /** - * Convert a size specification like 16K into an integral number of bytes. + * Convert a size specification like 16K into an integral number of bytes. **/ _PUBLIC_ bool conv_str_size_error(const char * str, uint64_t * val); @@ -382,7 +382,7 @@ const char **str_list_make_v3_const(TALLOC_CTX *mem_ctx, /** - * Read one line (data until next newline or eof) and allocate it + * Read one line (data until next newline or eof) and allocate it */ _PUBLIC_ char *afdgets(int fd, TALLOC_CTX *mem_ctx, size_t hint); @@ -403,7 +403,7 @@ _PUBLIC_ char *file_load(const char *fname, size_t *size, size_t maxsize, TALLOC /** load a file into memory and return an array of pointers to lines in the file -must be freed with talloc_free(). +must be freed with talloc_free(). **/ _PUBLIC_ char **file_lines_load(const char *fname, int *numlines, size_t maxsize, TALLOC_CTX *mem_ctx); @@ -417,7 +417,7 @@ _PUBLIC_ char **fd_lines_load(int fd, int *numlines, size_t maxsize, TALLOC_CTX _PUBLIC_ bool file_save_mode(const char *fname, const void *packet, size_t length, mode_t mode); /** - save a lump of data into a file. Mostly used for debugging + save a lump of data into a file. Mostly used for debugging */ _PUBLIC_ bool file_save(const char *fname, const void *packet, size_t length); _PUBLIC_ int vfdprintf(int fd, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0); @@ -473,7 +473,7 @@ _PUBLIC_ bool file_check_permissions(const char *fname, /** * Try to create the specified directory if it didn't exist. * - * @retval true if the directory already existed and has the right permissions + * @retval true if the directory already existed and has the right permissions * or was successfully created. */ _PUBLIC_ bool directory_create_or_exist(const char *dname, mode_t dir_perms); @@ -552,14 +552,14 @@ _PUBLIC_ void *smb_memdup(const void *p, size_t size); /** * Write a password to the log file. * - * @note Only actually does something if DEBUG_PASSWORD was defined during + * @note Only actually does something if DEBUG_PASSWORD was defined during * compile-time. */ _PUBLIC_ void dump_data_pw(const char *msg, const uint8_t * data, size_t len); /** * see if a range of memory is all zero. A NULL pointer is considered - * to be all zero + * to be all zero */ _PUBLIC_ bool all_zero(const uint8_t *ptr, size_t size); @@ -581,7 +581,7 @@ void *calloc_array(size_t size, size_t nmemb); * Retrieve amount of free disk space. * this does all of the system specific guff to get the free disk space. * It is derived from code in the GNU fileutils package, but has been - * considerably mangled for use here + * considerably mangled for use here * * results are returned in *dfree and *dsize, in 512 byte units */