[gnome-builder] unsaved-files: use errno.h



commit ca1cd8f861854d0e9ec004075b24036096f2f222
Author: Christian Hergert <christian hergert me>
Date:   Sat Apr 11 02:00:01 2015 -0700

    unsaved-files: use errno.h

 libide/ide-unsaved-files.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libide/ide-unsaved-files.c b/libide/ide-unsaved-files.c
index 2074999..9ef6912 100644
--- a/libide/ide-unsaved-files.c
+++ b/libide/ide-unsaved-files.c
@@ -18,6 +18,7 @@
 
 #define G_LOG_DOMAIN "ide-unsaved-files"
 
+#include <errno.h>
 #include <glib/gstdio.h>
 #include <string.h>
 
@@ -144,8 +145,6 @@ ide_unsaved_files_save_worker (GTask        *task,
   /* ensure that the directory exists */
   if (g_mkdir_with_parents (state->drafts_directory, 0700) != 0)
     {
-      int errno;
-
       error = g_error_new_literal (G_IO_ERROR,
                                    g_io_error_from_errno (errno),
                                    "Failed to create drafts directory");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]