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

gEDA-cvs: CVS update: s_page.nw



  User: danmc   
  Date: 06/01/05 08:37:33

  Modified:    .        s_page.nw
  Log:
  Avoid glib/gstdio.h and g_unlink.  Just use stdio.h and unlink since
  
  the former didn't appear until glib-2.6.
  
  
  
  
  Revision  Changes    Path
  1.18      +2 -3      eda/geda/devel/libgeda/noweb/s_page.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: s_page.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/libgeda/noweb/s_page.nw,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -b -r1.17 -r1.18
  --- s_page.nw	2 Dec 2005 17:04:42 -0000	1.17
  +++ s_page.nw	5 Jan 2006 13:37:32 -0000	1.18
  @@ -74,7 +74,6 @@
   
   #include <gtk/gtk.h>
   #include <glib.h>
  -#include <glib/gstdio.h>
   #include <libguile.h>
   #include <sys/types.h>
   #include <sys/stat.h>
  @@ -188,7 +187,7 @@
     page->saved_since_first_loaded = 0;
     page->do_autosave_backup = 0;
   
  -  page->load_newer_backup_func = (int *) load_newer_backup_func;
  +  page->load_newer_backup_func = load_newer_backup_func;
   
     /* now append page to page list of toplevel */
     toplevel->page_tail->next = page;
  @@ -255,7 +254,7 @@
       if ( (g_file_test (backup_filename, G_FILE_TEST_EXISTS)) && 
   	 (!g_file_test(backup_filename, G_FILE_TEST_IS_DIR)) )
       {
  -      if (g_unlink(backup_filename) != 0) {
  +      if (unlink(backup_filename) != 0) {
   	s_log_message("s_page_delete: Unable to delete backup file %s.", backup_filename);      }
       }
       g_free (dirname);