updates.
authorPekka Riikonen <priikone@silcnet.org>
Sun, 3 Feb 2002 10:44:32 +0000 (10:44 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 3 Feb 2002 10:44:32 +0000 (10:44 +0000)
lib/contrib/getopt.c
lib/silcclient/Makefile.am
lib/silcclient/README
lib/silcclient/client_internal.h
lib/silcclient/client_ops_example.c [moved from lib/silcclient/client_ops_example.h with 100% similarity]

index 1378a221ab9d05365611fe4e79848c462cce56cf..0b47ea7eccf78992d6fcd2f9233d86a104ee28fb 100644 (file)
@@ -35,6 +35,7 @@
 #endif
 
 #include <stdio.h>
+#include <string.h>
 
 /* Comment out all this code if we are using the GNU C Library, and are not
    actually compiling the library itself.  This code is part of the GNU C
@@ -460,7 +461,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
       int exact = 0;
       int ambig = 0;
       const struct option *pfound = NULL;
-      int indfound;
+      int indfound = 0;
 
       while (*s && *s != '=')
        s++;
index 29ab9c5a244ddbb01157e13fd32d314921bdeac7..5dafa9749e1fe2d7fcc1f84e8ab84ad864fae414 100644 (file)
@@ -42,6 +42,6 @@ include_HEADERS=      \
        silcapi.h
 endif
 
-EXTRA_DIST = *.h
+EXTRA_DIST = *.h client_ops_example.c
 
 include $(top_srcdir)/Makefile.defines.in
index fef9e10ed1e23f2096b3d545e57f639c15370ed8..2b578a7ef800028908927def899a53c13fa03040 100644 (file)
@@ -81,7 +81,7 @@ SilcClientOperations ops = {
   silc_key_agreement,
 };
 
-Please see the `client_ops_example.h' header file in lib/silcclient/
+Please see the `client_ops_example.c' source file in lib/silcclient/
 directory for predefined structure and stub functions for your
 convenince.  It is provided for programmers so that they can copy
 it and use it directly in their application.
index 6471d8c01fe2da0bab0fdd9df84cee10746c39c7..32e7fdfb8db844d91bf1729eb2d3867ca557cf4d 100644 (file)
@@ -109,7 +109,7 @@ do {                                                                \
                                          SILC_TASK_WRITE));    \
 } while(0)
 
-/* Finds socket connection object by file descriptor */                \
+/* Finds socket connection object by file descriptor */
 #define SILC_CLIENT_GET_SOCK(__x, __fd, __sock)                        \
 do {                                                           \
   int __i;                                                     \