}
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);
/* 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)
}
}
-static const char*
+static const char *
copy_debug_sparse_string (enum copy_debug_val debug_val)
{
switch (debug_val)
/* 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, _("\
/* 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;
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. */
/* 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;
#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
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. */
#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;
#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\
#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 */
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)
errno = ESRCH;
return NULL;
}
- struct dirent* d;
+ struct dirent *d;
if (! (d = real_readdir (dirp)))
{
fprintf (stderr, "Failed to get dirent\n");