updates
authorPekka Riikonen <priikone@silcnet.org>
Fri, 6 Jul 2001 15:34:42 +0000 (15:34 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 6 Jul 2001 15:34:42 +0000 (15:34 +0000)
apps/irssi/src/fe-text/textbuffer-view.c
apps/silcd/Makefile.am
configure.in.pre
lib/contrib/regex.c
lib/silccrypt/rc6.c
lib/silccrypt/twofish.c

index 5cc6405a68b3c8aad3fb53b69889e321d9f28826..449f20a9197860488861cd7351e68a2e61fc355d 100644 (file)
@@ -844,7 +844,7 @@ static void bookmark_check_remove(char *key, LINE_REC *line,
 static void view_bookmarks_check(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
 {
         BOOKMARK_FIND_REC rec;
-        LINE_REC *newline;
+        LINE_REC *new_line;
        GSList *tmp;
 
         rec.remove_line = line;
@@ -855,14 +855,14 @@ static void view_bookmarks_check(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line)
        if (rec.remove_list != NULL) {
                GList *pos = g_list_find(view->buffer->lines, line);
 
-               newline = pos == NULL || pos->prev == NULL ? NULL :
+               new_line = pos == NULL || pos->prev == NULL ? NULL :
                        (pos->next == NULL ? pos->prev->data :
                         pos->next->data);
                for (tmp = rec.remove_list; tmp != NULL; tmp = tmp->next) {
                        g_hash_table_remove(view->bookmarks, tmp->data);
-                       if (newline != NULL) {
+                       if (new_line != NULL) {
                                g_hash_table_insert(view->bookmarks,
-                                                   tmp->data, newline);
+                                                   tmp->data, new_line);
                        }
                }
                g_slist_free(rec.remove_list);
index 025895198baa436594bc141039be75045ece5109..f3caad4b72607685b0fe8fbdb24c0b3b8033ef6c 100644 (file)
@@ -18,7 +18,7 @@
 
 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
 
-sbin_PROGRAMS = silcd
+sbin_PROGRAMS = silcd testi
 
 silcd_SOURCES = \
        protocol.c \
@@ -35,6 +35,8 @@ silcd_SOURCES = \
        server_version.c
 silcd_DEPENDENCIES = ../lib/libsilc.a
 
+testi_SOURCES = testi.c
+
 LIBS = $(SILC_COMMON_LIBS)
 LDADD =
 
index cd7ccba12e24daaddf5deafdd7338b35072fd379..80b8dec82167cd6b7c522648b428102fb71dfc34 100644 (file)
@@ -18,9 +18,6 @@
 
 AC_INIT(includes/version.h)
 
-# Compiler settings
-CFLAGS="-Wall $CFLAGS"
-
 #
 # Put here any platform specific stuff
 #
@@ -50,10 +47,7 @@ AC_DEFINE(SILC_DIST_DEFINE)
 # XXX
 # Compiler flags
 if test "$GCC"; then
-  CFLAGS="-finline-functions $CFLAGS"
-else
-  # Currently GCC is only supported compiler
-  AC_MSG_ERROR(GCC is only supported compiler currently)
+  CFLAGS="-Wall -finline-functions $CFLAGS"
 fi
 
 # Program checking
index 5845a4169e7ef54e3630daa6c25923d04e1b3f76..6aec4348a53293e10e6f1acfac8b6d311338021c 100644 (file)
@@ -72,13 +72,7 @@ ifdef HAVE_CONFIG_H
 #include <strings.h>
 #endif
 
-#ifdef STDC_HEADERS
 #include <stdlib.h>
-#else
-char *malloc ();
-char *realloc ();
-#endif
-
 
 /* Define the syntax stuff for \<, \>, etc.  */
 
index 07997d8fa6dc956265484884367a5de3215520b4..68dcb3c02a3d1ca9c3c0456325a42d7bd172e45c 100644 (file)
@@ -151,7 +151,7 @@ u4byte *rc6_set_key(RC6Context *ctx,
 
         l[k] = in_key[k];
 
-    t = (key_len / 32) - 1; // t = (key_len / 32);
+    t = (key_len / 32) - 1; /* t = (key_len / 32); */
 
     a = b = i = j = 0;
 
@@ -159,8 +159,8 @@ u4byte *rc6_set_key(RC6Context *ctx,
     {   a = rotl(l_key[i] + a + b, 3); b += a;
         b = rotl(l[j] + b, b);
         l_key[i] = a; l[j] = b;
-        i = (i == 43 ? 0 : i + 1); // i = (i + 1) % 44;  
-        j = (j == t ? 0 : j + 1);  // j = (j + 1) % t;
+        i = (i == 43 ? 0 : i + 1); /* i = (i + 1) % 44; */
+        j = (j == t ? 0 : j + 1);  /* j = (j + 1) % t; */
     }
 
     return l_key;
index 1dadee2595b146fdda33728a0c80037f1fc8f409..b9036b4ef7e742baad81a0b9c2d17ffa6bc61bc8 100644 (file)
@@ -420,27 +420,27 @@ u4byte mds_rem(u4byte p0, u4byte p1)
 
     for(i = 0; i < 8; ++i)
     {
-        t = p1 >> 24;   // get most significant coefficient
+        t = p1 >> 24;   /* get most significant coefficient */
         
-        p1 = (p1 << 8) | (p0 >> 24); p0 <<= 8;  // shift others up
+        p1 = (p1 << 8) | (p0 >> 24); p0 <<= 8;  /* shift others up */
             
-        // multiply t by a (the primitive element - i.e. left shift)
+        /* multiply t by a (the primitive element - i.e. left shift) */
 
         u = (t << 1); 
         
-        if(t & 0x80)            // subtract modular polynomial on overflow
+        if(t & 0x80)            /* subtract modular polynomial on overflow */
         
             u ^= G_MOD; 
 
-        p1 ^= t ^ (u << 16);    // remove t * (a * x^2 + 1)  
+        p1 ^= t ^ (u << 16);    /* remove t * (a * x^2 + 1) */
 
-        u ^= (t >> 1);          // form u = a * t + t / a = t * (a + 1 / a); 
+        u ^= (t >> 1);          /* form u = a * t + t / a = t * (a + 1 / a); */
         
-        if(t & 0x01)            // add the modular polynomial on underflow
+        if(t & 0x01)            /* add the modular polynomial on underflow */
         
             u ^= G_MOD >> 1;
 
-        p1 ^= (u << 24) | (u << 8); // remove t * (a + 1/a) * (x^3 + x)
+        p1 ^= (u << 24) | (u << 8); /* remove t * (a + 1/a) * (x^3 + x) */
     }
 
     return p1;