[compiler-rt] 0b3d312 - [ASAN][NFC] Improve language

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 12 02:56:34 PST 2021


Author: Vitaly Buka
Date: 2021-02-12T02:55:58-08:00
New Revision: 0b3d31222df9a07ce137cac1fc16995911c547ba

URL: https://github.com/llvm/llvm-project/commit/0b3d31222df9a07ce137cac1fc16995911c547ba
DIFF: https://github.com/llvm/llvm-project/commit/0b3d31222df9a07ce137cac1fc16995911c547ba.diff

LOG: [ASAN][NFC] Improve language

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Posix/getpass.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/getpass.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/getpass.cpp
index c65bcbd1d03a..d8cef5597552 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/getpass.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/getpass.cpp
@@ -26,18 +26,18 @@
 int
 main (int argc, char** argv)
 {
-    int master;
-    int pid = forkpty(&master, NULL, NULL, NULL);
+    int m;
+    int pid = forkpty(&m, NULL, NULL, NULL);
 
     if(pid == -1) {
       fprintf(stderr, "forkpty failed\n");
       return 1;
     } else if (pid > 0) {
       char buf[1024];
-      int res = read(master, buf, sizeof(buf));
+      int res = read(m, buf, sizeof(buf));
       write(1, buf, res);
-      write(master, "password\n", 9);
-      while ((res = read(master, buf, sizeof(buf))) > 0) write(1, buf, res);
+      write(m, "password\n", 9);
+      while ((res = read(m, buf, sizeof(buf))) > 0) write(1, buf, res);
     } else {
       char *s = getpass("prompt");
       assert(strcmp(s, "password") == 0);


        


More information about the llvm-commits mailing list