applied, thanks!

(that's probably a leftover from the copy/paste from the gnumach code)

[email protected], le dim. 28 sept. 2025 19:17:17 +0100, a ecrit:
> 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
> 
> 

-- 
Samuel
 FYLG> Tiens, vlĂ  une URL qui va bien :
 FYLG> ftp://127.0.0.1/WaReZ/NiouZeS/WinDoZe/NeWSMoNGeR/SuPeR
 c'est gentil sauf que l'adresse ne fonctionne pas sa me fais une erreur
 -+- Furtif in Guide du Neuneu Usenet : <MODE CERVEAU OFF> -+-

Reply via email to