This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] Fix typo in kill(1)


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9b01c29c0435e6cd52412cf59295b19921feeb61

commit 9b01c29c0435e6cd52412cf59295b19921feeb61
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Thu Nov 24 16:00:28 2016 +0100

    Fix typo in kill(1)
    
    buf is just a local buffer, sig is ultimately pointing to the
    signal string.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/utils/kill.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc
index e771cdb..c6adaa2 100644
--- a/winsup/utils/kill.cc
+++ b/winsup/utils/kill.cc
@@ -90,7 +90,7 @@ getsig (const char *in_sig)
     }
   intsig = strtosigno (sig) ?: atoi (in_sig);
   char *p;
-  if (!intsig && (strcmp (buf, "SIG0") != 0 && (strtol (in_sig, &p, 10) != 0 || *p)))
+  if (!intsig && (strcmp (sig, "SIG0") != 0 && (strtol (in_sig, &p, 10) != 0 || *p)))
     intsig = -1;
   return intsig;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]