doc: Clarify documentation regarding g_file_replace and etags
[platform/upstream/glib.git] / gio / fen / fen-kernel.c
index 2649e95..ed1e304 100644 (file)
@@ -15,9 +15,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
  *
  * Authors: Lin Ma <lin.ma@sun.com>
  */
 #include "fen-dump.h"
 
 #ifdef GIO_COMPILATION
-#define FK_W if (fk_debug_enabled) g_debug
-static gboolean fk_debug_enabled = FALSE;
+#define FK_W if (FALSE) g_debug
 #else
 #include "gam_error.h"
 #define FK_W(...) GAM_DEBUG(DEBUG_INFO, __VA_ARGS__)
 #endif
 
-G_GNUC_INTERNAL G_LOCK_DEFINE (fen_lock);
+G_LOCK_DEFINE (fen_lock);
 
 static ulong max_port_events = 512;
 static GList *pn_visible_list; /* the queue of ports which don't have the max objs */
@@ -375,7 +372,7 @@ start_over:
 }
 
 /**
- * port_remove
+ * port_remove:
  *
  * < private >
  * Unsafe, need lock fen_lock.
@@ -408,7 +405,7 @@ port_remove (node_t *f)
     }
 }
 
-/**
+/*
  * Get Solaris resouce values.
  *
  */
@@ -463,9 +460,7 @@ printevent (const char *pname, int event, const char *tag)
     static gchar       *event_string = NULL;
     GString                    *str;
 
-    if (event_string) {
-        g_free(event_string);
-    }
+    g_free(event_string);
 
     str = g_string_new ("");
     g_string_printf (str, "[%s] [%-20s]", tag, pname);