svnno****@sourc*****
svnno****@sourc*****
Sat Feb 14 15:00:41 JST 2009
Revision: 3682 http://svn.sourceforge.jp/view?root=kazehakase&view=rev&rev=3682 Author: ikezoe Date: 2009-02-14 15:00:41 +0900 (Sat, 14 Feb 2009) Log Message: ----------- fix compiler warnings. Modified Paths: -------------- kazehakase/trunk/src/utils/utils.c Modified: kazehakase/trunk/src/utils/utils.c =================================================================== --- kazehakase/trunk/src/utils/utils.c 2009-02-14 05:51:49 UTC (rev 3681) +++ kazehakase/trunk/src/utils/utils.c 2009-02-14 06:00:41 UTC (rev 3682) @@ -665,7 +665,8 @@ time_int = atoi(time); if (t - time_int < limit_seconds) { - write(fd, buf, strlen(buf)); + ssize_t size; + size = write(fd, buf, strlen(buf)); goto CLEANUP; } @@ -676,10 +677,11 @@ if (t - st.st_mtime < limit_seconds) { gchar *entry; + ssize_t size; entry = g_strdup_printf(TIME_STAMP_FORMAT, st.st_mtime, path); - write(fd, entry, strlen(entry)); + size = write(fd, entry, strlen(entry)); goto CLEANUP; } @@ -1010,7 +1012,7 @@ kz_win32_base_path (void) { #ifndef G_OS_WIN32 - return NULL; + return win32_base_path; #else if (win32_base_path) return win32_base_path;