* src/copy.c (copy_reg): Likewise.
* src/cut.c (main): Likewise.
* src/dd.c (main): Likewise.
* src/getlimits.c (print_int): Likewise.
* src/join.c (join): Likewise.
* src/pwd.c (logical_getcwd): Likewise.
* src/sort.c (specify_nmerge, mergefps, avoid_trashing_input): Likewise.
(merge): Likewise.
* src/uptime.c (usage): Likewise.
{
bool access_changed = false;
- if (!(sb.st_mode & S_IWUSR) && geteuid() != 0)
+ if (!(sb.st_mode & S_IWUSR) && geteuid () != 0)
access_changed = fchmod_or_lchmod (dest_desc, dst_name, 0600) == 0;
if (!copy_attr_by_fd (src_name, source_desc, dst_name, dest_desc, x)
int optc;
bool ok;
bool delim_specified = false;
- char *spec_list_string IF_LINT(= NULL);
+ char *spec_list_string IF_LINT (= NULL);
initialize_main (&argc, &argv);
set_program_name (argv[0]);
offset = lseek (STDIN_FILENO, 0, SEEK_CUR);
input_seekable = (0 <= offset);
- input_offset = MAX(0, offset);
+ input_offset = MAX (0, offset);
input_seek_errno = errno;
if (output_file == NULL)
usage, AUTHORS, (char const *) NULL);
#define print_int(TYPE) \
- snprintf (limit, sizeof(limit), "%"PRIuMAX, (uintmax_t)TYPE##_MAX); \
+ snprintf (limit, sizeof limit, "%"PRIuMAX, (uintmax_t)TYPE##_MAX); \
printf (#TYPE"_MAX=%s\n", limit); \
oflow = decimal_ascii_add (limit, "1"); \
printf (#TYPE"_OFLOW=%s\n", oflow); \
free (oflow); \
if (TYPE##_MIN) \
{ \
- snprintf (limit, sizeof(limit), "%"PRIdMAX, (intmax_t)TYPE##_MIN); \
+ snprintf (limit, sizeof limit, "%"PRIdMAX, (intmax_t)TYPE##_MIN); \
printf (#TYPE"_MIN=%s\n", limit); \
oflow = decimal_ascii_add (limit, "-1"); \
printf (#TYPE"_UFLOW=%s\n", oflow); \
if (join_header_lines && seq1.count && seq2.count)
{
- prjoin(seq1.lines[0], seq2.lines[0]);
+ prjoin (seq1.lines[0], seq2.lines[0]);
prevline[0] = NULL;
prevline[1] = NULL;
advance_seq (fp1, &seq1, true, 1);
}
/* System call validation. */
- if (stat (wd, &st1) == 0 && stat (".", &st2) == 0 && SAME_INODE(st1, st2))
+ if (stat (wd, &st1) == 0 && stat (".", &st2) == 0 && SAME_INODE (st1, st2))
return wd;
return NULL;
}
if (nmerge < 2)
{
error (0, 0, _("invalid --%s argument %s"),
- long_options[oi].name, quote(s));
+ long_options[oi].name, quote (s));
error (SORT_FAILURE, 0,
_("minimum --%s argument is %s"),
- long_options[oi].name, quote("2"));
+ long_options[oi].name, quote ("2"));
}
else if (max_nmerge < nmerge)
{
{
char max_nmerge_buf[INT_BUFSIZE_BOUND (unsigned int)];
error (0, 0, _("--%s argument %s too large"),
- long_options[oi].name, quote(s));
+ long_options[oi].name, quote (s));
error (SORT_FAILURE, 0,
_("maximum --%s argument with current rlimit is %s"),
long_options[oi].name,
}
xfclose (ofp, output_file);
- free(fps);
- free(buffer);
- free(ord);
- free(base);
- free(cur);
+ free (fps);
+ free (buffer);
+ free (ord);
+ free (base);
+ free (cur);
}
/* Merge lines from FILES onto OFP. NTEMPS is the number of temporary
files[i].pid = pid;
if (i + num_merged < nfiles)
- memmove(&files[i + 1], &files[i + num_merged],
- num_merged * sizeof *files);
+ memmove (&files[i + 1], &files[i + num_merged],
+ num_merged * sizeof *files);
ntemps += 1;
nfiles -= num_merged - 1;;
i += num_merged;
/* Put the remaining input files into the last NMERGE-sized output
window, so they will be merged in the next pass. */
- memmove(&files[out], &files[in], (nfiles - in) * sizeof *files);
+ memmove (&files[out], &files[in], (nfiles - in) * sizeof *files);
ntemps += out;
nfiles -= in - out;
}
but such a test is hard to write. For the moment then, we
have a hack which depends on the preprocessor used at compile
time to tell us what the running kernel is. Ugh. */
- printf(_(" \
+ printf (_(" \
Processes in\n\
an uninterruptible sleep state also contribute to the load average.\n"));
#else
- printf(_("\n"));
+ printf (_("\n"));
#endif
printf (_("\
If FILE is not specified, use %s. %s as FILE is common.\n\