Print this page
10120 smatch indenting fixes for usr/src/cmd
Reviewed by: Gergő Doma <domag02@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>
*** 25,34 ****
--- 25,37 ----
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+ /*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
/*
* Concatenate files.
*/
*** 269,282 ****
if (!S_ISCHR(target.st_mode) &&
!S_ISBLK(target.st_mode) &&
!S_ISSOCK(target.st_mode) &&
IDENTICAL(target, source)) {
! if (!silent)
! (void) fprintf(stderr,
! gettext("cat: input/output files '%s' identical\n"),
stdinflg?"-": *argv);
if (fclose(fi) != 0)
(void) fprintf(stderr,
gettext("cat: close error: %s\n"),
strerror(errno));
status = 2;
--- 272,287 ----
if (!S_ISCHR(target.st_mode) &&
!S_ISBLK(target.st_mode) &&
!S_ISSOCK(target.st_mode) &&
IDENTICAL(target, source)) {
! if (!silent) {
! (void) fprintf(stderr, gettext("cat: "
! "input/output files '%s' identical\n"),
stdinflg?"-": *argv);
+ }
+
if (fclose(fi) != 0)
(void) fprintf(stderr,
gettext("cat: close error: %s\n"),
strerror(errno));
status = 2;