]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - libio/putchar.c
nss/tst-nss-files-alias-leak: add missing opening quote in printf
[thirdparty/glibc.git] / libio / putchar.c
index 06cf4012f058db3d680e8449b85c49aa9642ee4a..a3f4200cdb59fd02de99ad610b21490a983c8592 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 #undef putchar
 
 int
-putchar (c)
-     int c;
+putchar (int c)
 {
   int result;
-  _IO_acquire_lock (_IO_stdout);
-  result = _IO_putc_unlocked (c, _IO_stdout);
-  _IO_release_lock (_IO_stdout);
+  _IO_acquire_lock (stdout);
+  result = _IO_putc_unlocked (c, stdout);
+  _IO_release_lock (stdout);
   return result;
 }