doc: Clarify documentation regarding g_file_replace and etags
[platform/upstream/glib.git] / gio / fen / fen-kernel.c
index f09ebaa..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>
  */
@@ -39,7 +37,7 @@
 #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 */
@@ -301,7 +299,7 @@ psource_new()
        return source;
 }
 
-/*
+/**
  * port_add:
  * @f:
  *
@@ -373,8 +371,8 @@ start_over:
     return errno;
 }
 
-/*
- * port_remove
+/**
+ * port_remove:
  *
  * < private >
  * Unsafe, need lock fen_lock.
@@ -462,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);