SF.net SVN: geany: [780] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Sat Sep 2 20:30:50 UTC 2006
Revision: 780
http://svn.sourceforge.net/geany/?rev=780&view=rev
Author: ntrel
Date: 2006-09-02 13:30:35 -0700 (Sat, 02 Sep 2006)
Log Message:
-----------
Fixed C89 variable declaration and two sign comparison warnings
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/main.c
trunk/src/sci_cb.c
trunk/src/utils.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-09-01 17:07:49 UTC (rev 779)
+++ trunk/ChangeLog 2006-09-02 20:30:35 UTC (rev 780)
@@ -1,3 +1,9 @@
+2006-09-02 Nick Treleaven <nick.treleaven at btinternet.com>
+
+ * src/utils.c, src/sci_cb.c, src/main.c:
+ Fixed C89 variable declaration and two sign comparison warnings.
+
+
2006-09-01 Enrico Tröger <enrico.troeger at uvena.de>
* src/document.c, src/dialogs.c, src/prefs.c, src/callbacks.c,
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2006-09-01 17:07:49 UTC (rev 779)
+++ trunk/src/main.c 2006-09-02 20:30:35 UTC (rev 780)
@@ -1017,13 +1017,13 @@
{
struct timeval timeout;
fd_set fds;
+ gint flags;
timeout.tv_sec = 60;
timeout.tv_usec = 0;
#ifdef G_OS_UNIX
// checking for non-blocking mode
- gint flags;
flags = fcntl(fd, F_GETFL, 0);
if (flags < 0)
Modified: trunk/src/sci_cb.c
===================================================================
--- trunk/src/sci_cb.c 2006-09-01 17:07:49 UTC (rev 779)
+++ trunk/src/sci_cb.c 2006-09-02 20:30:35 UTC (rev 780)
@@ -648,7 +648,7 @@
if (strncmp(buf + start, "\\begin", 6) == 0)
{
gchar full_cmd[15];
- gint j = 0;
+ guint j = 0;
// take also "\begingroup" (or whatever there can be) and append "\endgroup" and so on.
i = start + 6;
Modified: trunk/src/utils.c
===================================================================
--- trunk/src/utils.c 2006-09-01 17:07:49 UTC (rev 779)
+++ trunk/src/utils.c 2006-09-02 20:30:35 UTC (rev 780)
@@ -255,7 +255,7 @@
gtk_widget_set_sensitive(app->save_buttons[1], enable);
// save all menu item and tool button
- for (i = 0; i < gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->notebook)); i++)
+ for (i = 0; i < (guint) gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->notebook)); i++)
{
// count the amount of tabs where changes were made and if they are more than one,
// we need the save all button / item
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list