aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gnome-cal.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-04-21 06:13:36 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-21 06:13:36 +0800
commite9a7215277ccb59d126cd0981d148744068ed148 (patch)
tree16ce2125e88d3cd92a10f7eded7c4ae958455a69 /calendar/gnome-cal.c
parent3acbe7a46f8c3af807ed56b997e2995e45a2fafe (diff)
downloadgsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar
gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar.gz
gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar.bz2
gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar.lz
gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar.xz
gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.tar.zst
gsoc2013-evolution-e9a7215277ccb59d126cd0981d148744068ed148.zip
Fix compiler warnings - Federico
svn path=/trunk/; revision=170
Diffstat (limited to 'calendar/gnome-cal.c')
-rw-r--r--calendar/gnome-cal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar/gnome-cal.c b/calendar/gnome-cal.c
index af7b801f94..a7b5402e0d 100644
--- a/calendar/gnome-cal.c
+++ b/calendar/gnome-cal.c
@@ -8,6 +8,7 @@
#include <gnome.h>
#include <unistd.h>
#include <signal.h>
+#include <sys/wait.h>
#include "calendar.h"
#include "gnome-cal.h"
#include "gncal-full-day.h"
@@ -319,7 +320,7 @@ execute (char *command, int close_standard)
sigaction (SIGINT, &save_intr, NULL);
sigaction (SIGQUIT, &save_quit, NULL);
- for (i = (close_standard ? 0 : 3); i < 4096; i++)
+ for (i = (close_standard ? 0 : 3); i < top; i++)
close (i);
/* FIXME: As an excercise to the reader, copy the