summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2022-11-07 10:05:38 +0000
committerDarren Tucker <dtucker@dtucker.net>2022-11-07 22:22:15 +1100
commit747691604d3325ed2b62bad85b6fd8563ad32f6c (patch)
tree51adc0527a9700722fca1415ad0dd044a94ccd28 /servconf.c
parent1d78d25653805aefc7a8dd9d86cd7359ada3823c (diff)
downloadopenssh-git-747691604d3325ed2b62bad85b6fd8563ad32f6c.tar.gz
upstream: Remove some set but otherwise unused variables, spotted
in -portable by clang 16's -Wunused-but-set-variable. ok djm@ OpenBSD-Commit-ID: 3d943ddf2369b38fbf89f5f19728e7dc1daf3982
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/servconf.c b/servconf.c
index bba3ad80..8eaedde9 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: servconf.c,v 1.387 2022/11/07 10:02:59 dtucker Exp $ */
+/* $OpenBSD: servconf.c,v 1.388 2022/11/07 10:05:39 dtucker Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -2501,7 +2501,7 @@ load_server_config(const char *filename, struct sshbuf *conf)
char *line = NULL, *cp;
size_t linesize = 0;
FILE *f;
- int r, lineno = 0;
+ int r;
debug2_f("filename %s", filename);
if ((f = fopen(filename, "r")) == NULL) {
@@ -2514,7 +2514,6 @@ load_server_config(const char *filename, struct sshbuf *conf)
(r = sshbuf_allocate(conf, st.st_size)) != 0)
fatal_fr(r, "allocate");
while (getline(&line, &linesize, f) != -1) {
- lineno++;
/*
* Strip whitespace
* NB - preserve newlines, they are needed to reproduce