From: Diego Nieto Cid <[email protected]>

As a test I made the function static revealing it was unused in the file,
as the following warning suggests.

    ../../boot/boot.c: At top level:
    ../../boot/boot.c:157:13: warning: 'safe_gets' defined but not used 
[-Wunused-function]
      157 | static void safe_gets (char *buf, int buf_len)
          |             ^~~~~~~~~

Git grep showed no other usage of the name safe_gets in the Hurd project.
---
 boot/boot.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/boot/boot.c b/boot/boot.c
index 89f46e83..b6301379 100644
--- a/boot/boot.c
+++ b/boot/boot.c
@@ -154,11 +154,6 @@ char *bootdevice = 0;
 char *bootscript = 0;
 
 
-void safe_gets (char *buf, int buf_len)
-{
-  fgets (buf, buf_len, stdin);
-}
-
 extern char *useropen_dir;
 
 /* XXX: glibc should provide mig_reply_setup but does not.  */
-- 
2.51.0


Reply via email to