Skip to content

Commit

Permalink
Minor cleanup and automake tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
damienstuart committed Feb 3, 2024
1 parent e7fa0ef commit d39c96a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions client/getpasswd.c
Expand Up @@ -218,7 +218,7 @@ get_key_file(char *key, int *key_len, const char *key_file,
fko_ctx_t ctx, const fko_cli_options_t *options)
{
FILE *pwfile_ptr;
unsigned int numLines = 0, i = 0, found_dst;
unsigned int i = 0, found_dst;

char conf_line_buf[MAX_LINE_LEN] = {0};
char tmp_char_buf[MAX_LINE_LEN] = {0};
Expand All @@ -234,7 +234,6 @@ get_key_file(char *key, int *key_len, const char *key_file,

while ((fgets(conf_line_buf, MAX_LINE_LEN, pwfile_ptr)) != NULL)
{
numLines++;
conf_line_buf[MAX_LINE_LEN-1] = '\0';
lptr = conf_line_buf;

Expand Down
2 changes: 1 addition & 1 deletion common/Makefile.am
Expand Up @@ -12,7 +12,7 @@ libfko_util_a_SOURCES = $(libfko_util_source_files)

if USE_MINGW
EXTRA_libfko_util_a_SOURCES = ../win32/getlogin.c ../win32/getlogin.h
libfko_util_a_LDFLAGS = -lwsock32 -lws2_32
libfko_util_a_LIBADD = -lwsock32 -lws2_32
endif

AM_CPPFLAGS = $(GPGME_CFLAGS) -I $(top_srcdir)/common -I $(top_srcdir)/lib
Expand Down
2 changes: 2 additions & 0 deletions doc/Makefile.am
@@ -1,3 +1,5 @@
AUTOMAKE_OPTIONS = info-in-builddir

CLEANFILES = libfko.info

info_TEXINFOS = libfko.texi
Expand Down

0 comments on commit d39c96a

Please sign in to comment.