From 63ce9e3eb1938cee8672fd914531cea4543bb79f Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sun, 3 Feb 2002 10:44:32 +0000 Subject: [PATCH] updates. --- lib/contrib/getopt.c | 3 ++- lib/silcclient/Makefile.am | 2 +- lib/silcclient/README | 2 +- lib/silcclient/client_internal.h | 2 +- lib/silcclient/{client_ops_example.h => client_ops_example.c} | 0 5 files changed, 5 insertions(+), 4 deletions(-) rename lib/silcclient/{client_ops_example.h => client_ops_example.c} (100%) diff --git a/lib/contrib/getopt.c b/lib/contrib/getopt.c index 1378a221..0b47ea7e 100644 --- a/lib/contrib/getopt.c +++ b/lib/contrib/getopt.c @@ -35,6 +35,7 @@ #endif #include +#include /* 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++; diff --git a/lib/silcclient/Makefile.am b/lib/silcclient/Makefile.am index 29ab9c5a..5dafa974 100644 --- a/lib/silcclient/Makefile.am +++ b/lib/silcclient/Makefile.am @@ -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 diff --git a/lib/silcclient/README b/lib/silcclient/README index fef9e10e..2b578a7e 100644 --- a/lib/silcclient/README +++ b/lib/silcclient/README @@ -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. diff --git a/lib/silcclient/client_internal.h b/lib/silcclient/client_internal.h index 6471d8c0..32e7fdfb 100644 --- a/lib/silcclient/client_internal.h +++ b/lib/silcclient/client_internal.h @@ -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; \ diff --git a/lib/silcclient/client_ops_example.h b/lib/silcclient/client_ops_example.c similarity index 100% rename from lib/silcclient/client_ops_example.h rename to lib/silcclient/client_ops_example.c -- 2.24.0