mirror of
https://github.com/coreutils/coreutils.git
synced 2026-10-28 09:44:34 +08:00
maint: space between ‘char’ and ‘*’
This commit is contained in:
1 parent
29cee19e18
commit
d72a03cedb
9 files changed
+15
-15
No files matched your search
+1
-1
@@ -1272,7 +1272,7 @@ base58_encode_ctx (struct base_encode_context *ctx,
|
||||
}
|
||||
|
||||
static void
|
||||
base58_encode (char const* data, size_t data_len,
|
||||
base58_encode (char const *data, size_t data_len,
|
||||
char *out, idx_t *outlen)
|
||||
{
|
||||
affirm (base_length (data_len) <= *outlen);
|
||||
|
||||
+2
-2
@@ -131,7 +131,7 @@ static char const *top_level_dst_name;
|
||||
/* debug info about the last file copy. */
|
||||
static struct copy_debug copy_debug;
|
||||
|
||||
static const char*
|
||||
static const char *
|
||||
copy_debug_string (enum copy_debug_val debug_val)
|
||||
{
|
||||
switch (debug_val)
|
||||
@@ -148,7 +148,7 @@ copy_debug_string (enum copy_debug_val debug_val)
|
||||
}
|
||||
}
|
||||
|
||||
static const char*
|
||||
static const char *
|
||||
copy_debug_sparse_string (enum copy_debug_val debug_val)
|
||||
{
|
||||
switch (debug_val)
|
||||
|
||||
+1
-1
@@ -399,7 +399,7 @@ cleanup_file_list_stdin (void)
|
||||
/* Emit the --help output for --tabs=LIST option accepted by expand and
|
||||
unexpand. */
|
||||
extern void
|
||||
emit_tab_list_info (char const* program)
|
||||
emit_tab_list_info (char const *program)
|
||||
{
|
||||
/* suppress syntax check for emit_mandatory_arg_note() */
|
||||
oputs_ (program, _("\
|
||||
|
||||
@@ -4902,7 +4902,7 @@ print_color_indicator (const struct bin_str *ind)
|
||||
|
||||
/* Returns color indicator or NULL if none. */
|
||||
ATTRIBUTE_PURE
|
||||
static const struct bin_str*
|
||||
static const struct bin_str *
|
||||
get_color_indicator (const struct fileinfo *f, bool symlink_target)
|
||||
{
|
||||
enum indicator_no type;
|
||||
|
||||
+2
-2
@@ -1406,7 +1406,7 @@ is_utf8_charset (void)
|
||||
Return a pointer to the character, or NULL if not found. */
|
||||
ATTRIBUTE_PURE
|
||||
static char *
|
||||
mbsmbchr (char const* s, char const* c)
|
||||
mbsmbchr (char const *s, char const *c)
|
||||
{
|
||||
unsigned char uc = *c;
|
||||
/* GB18030 is the most restrictive for the 0x30 optimization below. */
|
||||
@@ -1420,7 +1420,7 @@ mbsmbchr (char const* s, char const* c)
|
||||
|
||||
/* Return a pointer to the beginning of the next field in line.
|
||||
The line pointer is moved to the end of the next field. */
|
||||
static char*
|
||||
static char *
|
||||
next_field (char **line)
|
||||
{
|
||||
char *field_start = *line;
|
||||
|
||||
+4
-4
@@ -546,7 +546,7 @@ is_nul (void const *buf, size_t length)
|
||||
|
||||
#define oputs(option) oputs_ (PROGRAM_NAME, option)
|
||||
static inline void
|
||||
oputs_ (MAYBE_UNUSED char const* program, char const *option)
|
||||
oputs_ (MAYBE_UNUSED char const *program, char const *option)
|
||||
{
|
||||
static int help_no_sgr =
|
||||
#if ! defined MANUAL_URL && ! defined BOLD_MAN_REFS
|
||||
@@ -567,7 +567,7 @@ oputs_ (MAYBE_UNUSED char const* program, char const *option)
|
||||
return;
|
||||
}
|
||||
|
||||
char const* first_word = option + strspn (option, " \t\n");
|
||||
char const *first_word = option + strspn (option, " \t\n");
|
||||
char const *option_text = strchr (option, '-');
|
||||
if (!option_text)
|
||||
option_text = first_word; /* for dd option syntax. */
|
||||
@@ -656,7 +656,7 @@ oputs_ (MAYBE_UNUSED char const* program, char const *option)
|
||||
#define oprintf(...) oprintf_ (PROGRAM_NAME, __VA_ARGS__)
|
||||
ATTRIBUTE_FORMAT ((printf, 2, 3))
|
||||
static inline void
|
||||
oprintf_ (char const* program, char const *message, ...)
|
||||
oprintf_ (char const *program, char const *message, ...)
|
||||
{
|
||||
va_list args;
|
||||
char *buf;
|
||||
@@ -751,7 +751,7 @@ the VERSION_CONTROL environment variable. Here are the values:\n\
|
||||
#define emit_symlink_recurse_options(default_opt) \
|
||||
emit_symlink_recurse_options_ (PROGRAM_NAME, default_opt)
|
||||
static inline void
|
||||
emit_symlink_recurse_options_ (char const* program, char const *default_opt)
|
||||
emit_symlink_recurse_options_ (char const *program, char const *default_opt)
|
||||
{
|
||||
printf (_("\
|
||||
\n\
|
||||
|
||||
@@ -40,9 +40,9 @@ sed 's/streq/0==str''cmp/' > k.c <<EOF || framework_failure_
|
||||
#include <stdarg.h>
|
||||
#include <dlfcn.h>
|
||||
|
||||
static FILE* (*fopen_func)(const char *, const char *);
|
||||
static FILE *(*fopen_func) (const char *, const char *);
|
||||
|
||||
FILE* fopen(const char *path, const char *mode)
|
||||
FILE *fopen(const char *path, const char *mode)
|
||||
{
|
||||
|
||||
/* get reference to original (libc provided) fopen */
|
||||
|
||||
@@ -32,7 +32,7 @@ int
|
||||
sched_getscheduler (pid_t pid)
|
||||
{
|
||||
fclose (fopen ("preloaded","w")); /* marker for preloaded interception */
|
||||
FILE* policyf = fopen ("/proc/self/sched", "r");
|
||||
FILE *policyf = fopen ("/proc/self/sched", "r");
|
||||
int policy;
|
||||
#define fscanfmt fscanf /* Avoid syntax check. */
|
||||
if (pid == 0 && fscanfmt (policyf, "policy : %d", &policy) == 1)
|
||||
|
||||
@@ -56,7 +56,7 @@ struct dirent *readdir (DIR *dirp)
|
||||
errno = ESRCH;
|
||||
return NULL;
|
||||
}
|
||||
struct dirent* d;
|
||||
struct dirent *d;
|
||||
if (! (d = real_readdir (dirp)))
|
||||
{
|
||||
fprintf (stderr, "Failed to get dirent\n");
|
||||
|
||||
Reference in new issue
Block a user