[gamin] [PATCH 2 of 3] Protect st_mtim in debugging line



# HG changeset patch
# User Brendan Cully <brendan kublai com>
# Date 1178393149 25200
# Node ID 843c9fa69d6e75dd8a669763faa501f03a315ba4
# Parent  195b3607f4f77ca752bc954ee4293c0a27686814
Protect st_mtim in debugging line

diff -r 195b3607f4f7 -r 843c9fa69d6e server/gam_poll_basic.c
--- a/server/gam_poll_basic.c	Sat May 05 12:21:45 2007 -0700
+++ b/server/gam_poll_basic.c	Sat May 05 12:25:49 2007 -0700
@@ -335,8 +335,12 @@ gam_poll_basic_poll_file(GamNode * node)
 	} else {
 #ifdef VERBOSE_POLL
 		GAM_DEBUG(DEBUG_INFO, "Poll: poll_file %s unchanged\n", path);
+#ifdef ST_MTIM_NSEC
 		GAM_DEBUG(DEBUG_INFO, "%d %d : %d %d\n", node->sbuf.st_mtim.tv_sec, node->sbuf.st_mtim.tv_nsec, sbuf.st_mtim.tv_sec, sbuf.st_mtim.tv_nsec);
-#endif
+#else
+		GAM_DEBUG(DEBUG_INFO, "%d : %d\n", node->sbuf.st_mtime, sbuf.st_mtime);
+#endif /* ST_MTIM_NSEC */
+#endif /* VERBOSE_POLL */
 	}
 
 	/*



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