* Multi-line string literals are deprecated in GCC 3.1 unless each line
authorArt Cancro <ajc@citadel.org>
Fri, 17 Oct 2003 02:31:45 +0000 (02:31 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 17 Oct 2003 02:31:45 +0000 (02:31 +0000)
  is wrapped in quotes.  Performed this fix so it'll compile.
* setup.c: removed references to unused variable tempfile[]

webcit/ChangeLog
webcit/calendar.c
webcit/event.c
webcit/setup.c

index b070c06132668aa231c4a1ea184384d4d69ee6c0..e62ba261faedee0271ee9366236ad73eb6b8aab1 100644 (file)
@@ -1,4 +1,9 @@
 $Log$
+Revision 500.28  2003/10/17 02:31:45  ajc
+* Multi-line string literals are deprecated in GCC 3.1 unless each line
+  is wrapped in quotes.  Performed this fix so it'll compile.
+* setup.c: removed references to unused variable tempfile[]
+
 Revision 500.27  2003/10/09 03:17:02  ajc
 * Started prettying up the vCard display.
 
@@ -1591,4 +1596,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index a52c9a0573358e1b38080f1ed547154c962cd354..9185c3edbd0af1c6c66c1beefacdf67e668a4720 100644 (file)
@@ -106,8 +106,8 @@ void cal_process_object(icalcomponent *cal,
                                "<IMG ALIGN=CENTER "
                                "SRC=\"/static/vcalendar.gif\">"
                                "&nbsp;&nbsp;"  
-                               "<B>Meeting invitation</B>
-                               </TD></TR>\n"
+                               "<B>Meeting invitation</B>"
+                               "</TD></TR>\n"
                        );
                        break;
                    case ICAL_METHOD_REPLY:
@@ -115,8 +115,8 @@ void cal_process_object(icalcomponent *cal,
                                "<IMG ALIGN=CENTER "
                                "SRC=\"/static/vcalendar.gif\">"
                                "&nbsp;&nbsp;"  
-                               "<B>Attendee's reply to your invitation</B>
-                               </TD></TR>\n"
+                               "<B>Attendee's reply to your invitation</B>"
+                               "</TD></TR>\n"
                        );
                        break;
                    case ICAL_METHOD_PUBLISH:
@@ -124,8 +124,8 @@ void cal_process_object(icalcomponent *cal,
                                "<IMG ALIGN=CENTER "
                                "SRC=\"/static/vcalendar.gif\">"
                                "&nbsp;&nbsp;"  
-                               "<B>Published event</B>
-                               </TD></TR>\n"
+                               "<B>Published event</B>"
+                               "</TD></TR>\n"
                        );
                        break;
                    default:
index 3b70eedd9249ebb8b803612c1532185feab26698..fef2275ab4440e28e4afd12fa682889b7de84ef9 100644 (file)
@@ -366,33 +366,33 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum)
 
        wprintf("</FORM>\n");
        
-       wprintf("<SCRIPT language=\"javascript\">
-               <!--
-                       if (document.EventForm.alldayevent.checked) {
-                               document.EventForm.dtstart_hour.value='0';
-                               document.EventForm.dtstart_hour.disabled = true;
-                               document.EventForm.dtstart_minute.value='0';
-                               document.EventForm.dtstart_minute.disabled = true;
-                               document.EventForm.dtend_hour.value='0';
-                               document.EventForm.dtend_hour.disabled = true;
-                               document.EventForm.dtend_minute.value='0';
-                               document.EventForm.dtend_minute.disabled = true;
-                               document.EventForm.dtend_month.disabled = true;
-                               document.EventForm.dtend_day.disabled = true;
-                               document.EventForm.dtend_year.disabled = true;
-                       }
-                       else {
-                               document.EventForm.dtstart_hour.disabled = false;
-                               document.EventForm.dtstart_minute.disabled = false;
-                               document.EventForm.dtend_hour.disabled = false;
-                               document.EventForm.dtend_minute.disabled = false;
-                               document.EventForm.dtend_month.disabled = false;
-                               document.EventForm.dtend_day.disabled = false;
-                               document.EventForm.dtend_year.disabled = false;
-                       }
-               //-->
-               </SCRIPT>
-       ");
+       wprintf("<SCRIPT language=\"javascript\">"
+               "<!--"
+                       "if (document.EventForm.alldayevent.checked) {"
+                               "document.EventForm.dtstart_hour.value='0';"
+                               "document.EventForm.dtstart_hour.disabled = true;"
+                               "document.EventForm.dtstart_minute.value='0';"
+                               "document.EventForm.dtstart_minute.disabled = true;"
+                               "document.EventForm.dtend_hour.value='0';"
+                               "document.EventForm.dtend_hour.disabled = true;"
+                               "document.EventForm.dtend_minute.value='0';"
+                               "document.EventForm.dtend_minute.disabled = true;"
+                               "document.EventForm.dtend_month.disabled = true;"
+                               "document.EventForm.dtend_day.disabled = true;"
+                               "document.EventForm.dtend_year.disabled = true;"
+                       "}"
+                       "else {"
+                               "document.EventForm.dtstart_hour.disabled = false;"
+                               "document.EventForm.dtstart_minute.disabled = false;"
+                               "document.EventForm.dtend_hour.disabled = false;"
+                               "document.EventForm.dtend_minute.disabled = false;"
+                               "document.EventForm.dtend_month.disabled = false;"
+                               "document.EventForm.dtend_day.disabled = false;"
+                               "document.EventForm.dtend_year.disabled = false;"
+                       "}"
+               "//-->"
+               "</SCRIPT>\n"
+       );
 
        do_template("endbox");
        wDumpContent(1);
index 9706bafceb2ac41b0b29b34a8a76d6d43a6dd3ca..2bb76df2b1f2754b8b7ae07a42d40b1378d55ec5 100644 (file)
@@ -229,10 +229,8 @@ void set_value(char *prompt, char str[])
        int i;
 #endif
        char buf[SIZ];
-       char tempfile[PATH_MAX];
        char setupmsg[SIZ];
 
-       strcpy(tempfile, tmpnam(NULL));
        strcpy(setupmsg, "");
 
        switch (setup_type) {