subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r1755991 - /subversion/trunk/subversion/libsvn_subr/cmdline.c
Date Thu, 11 Aug 2016 14:14:15 GMT
Author: ivan
Date: Thu Aug 11 14:14:14 2016
New Revision: 1755991

URL: http://svn.apache.org/viewvc?rev=1755991&view=rev
Log:
Avoid code duplication by using existing function.

* subversion/libsvn_subr/cmdline.c
  (svn_cmdline__be_interactive): Use svn_cmdline__stdin_is_a_terminal().

Modified:
    subversion/trunk/subversion/libsvn_subr/cmdline.c

Modified: subversion/trunk/subversion/libsvn_subr/cmdline.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/cmdline.c?rev=1755991&r1=1755990&r2=1755991&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/cmdline.c (original)
+++ subversion/trunk/subversion/libsvn_subr/cmdline.c Thu Aug 11 14:14:14 2016
@@ -1207,11 +1207,7 @@ svn_cmdline__be_interactive(svn_boolean_
    * If --force-interactive was passed, always be interactive. */
   if (!force_interactive && !non_interactive)
     {
-#ifdef WIN32
-      return (_isatty(STDIN_FILENO) != 0);
-#else
-      return (isatty(STDIN_FILENO) != 0);
-#endif
+      return svn_cmdline__stdin_is_a_terminal();
     }
   else if (force_interactive)
     return TRUE;



Mime
View raw message