]> git.sesse.net Git - vlc/blobdiff - modules/gui/ncurses.c
Replace strerror() with %m (or Linux DVB: strerror_r) - refs #1297
[vlc] / modules / gui / ncurses.c
index 81313ec4060ac3fb71c4f24e9d19d739f1a7ad2b..05ece11630d0ecd400551847a9fbcecd6058b8bc 100644 (file)
@@ -1945,12 +1945,8 @@ static void ReadDir( intf_thread_t *p_intf )
         if( p_current_dir == NULL )
         {
             /* something went bad, get out of here ! */
-#ifdef HAVE_ERRNO_H
-            msg_Warn( p_intf, "cannot open directory `%s' (%s)",
-                      p_sys->psz_current_dir, strerror(errno));
-#else
-            msg_Warn( p_intf, "cannot open directory `%s'", p_sys->psz_current_dir );
-#endif
+            msg_Warn( p_intf, "cannot open directory `%s' (%m)",
+                      p_sys->psz_current_dir );
             return;
         }