lower case tags
[citadel.git] / webcit / notes.c
index 29527211452fe8fc1cf952c44df698971cb2fce5..24b25ab271b6f7d9aed5356edd04f7755892ef7d 100644 (file)
@@ -5,21 +5,6 @@
  *
  */
 
-#include <ctype.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <fcntl.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <sys/socket.h>
-#include <limits.h>
-#include <string.h>
-#include <pwd.h>
-#include <errno.h>
-#include <stdarg.h>
-#include <time.h>
 #include "webcit.h"
 #include "webserver.h"
 
@@ -30,17 +15,17 @@ void display_note(long msgnum) {
        int in_text = 0;
        int i;
 
-       wprintf("<IMG ALIGN=MIDDLE SRC=\"/static/note.gif\">\n");
+       wprintf("<IMG ALIGN=MIDDLE src=\"/static/storenotes_48x.gif\">\n");
 
        serv_printf("MSG0 %ld", msgnum);
-       serv_gets(buf);
+       serv_getln(buf, sizeof buf);
        if (buf[0] != '1') {
                wprintf("%s<br />\n", &buf[4]);
                return;
        }
 
        strcpy(notetext, "");
-       while (serv_gets(buf), strcmp(buf, "000")) {
+       while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
 
                /* Fill the buffer to at least 256 characters */
                if ( (in_text) && (strlen(notetext) < 256) ) {