summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Horstmann <thorsten.horstmann@web.de>2015-02-24 20:45:07 +0800
committerThorsten Horstmann <thorsten.horstmann@web.de>2015-02-24 20:45:07 +0800
commit1b125465182b5cdb9f80e4a934c936168ab95b2f (patch)
tree61cbe9844db4a5d08addeffc2fddf5d1708ca900
parent3955a37ca5ec4349f5dc21ce93a8e076f681198a (diff)
downloaddropbear-1b125465182b5cdb9f80e4a934c936168ab95b2f.tar.gz
Some minor typo fixes, found by codespell.
-rw-r--r--Makefile.in2
-rw-r--r--buffer.c2
-rw-r--r--channel.h2
-rw-r--r--scp.c2
-rw-r--r--svr-agentfwd.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index 8cde521..8ab1a73 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -140,7 +140,7 @@ insmulti%: dropbearmulti
$(INSTALL) -d $(DESTDIR)$(mandir)/man1
if test -e $*.1; then $(INSTALL) -m 644 $*.1 $(DESTDIR)$(mandir)/man1/$*.1; fi
-# dropbear should go in sbin, so it needs a seperate rule
+# dropbear should go in sbin, so it needs a separate rule
inst_dropbear: dropbear
$(INSTALL) -d $(DESTDIR)$(sbindir)
$(INSTALL) dropbear$(EXEEXT) $(DESTDIR)$(sbindir)
diff --git a/buffer.c b/buffer.c
index 9bda652..01af0dd 100644
--- a/buffer.c
+++ b/buffer.c
@@ -127,7 +127,7 @@ void buf_setpos(buffer* buf, unsigned int pos) {
buf->pos = pos;
}
-/* increment the postion by incr, increasing the buffer length if required */
+/* increment the position by incr, increasing the buffer length if required */
void buf_incrwritepos(buffer* buf, unsigned int incr) {
if (incr > BUF_MAX_INCR || buf->pos + incr > buf->size) {
dropbear_exit("Bad buf_incrwritepos");
diff --git a/channel.h b/channel.h
index 8daf943..689d2d6 100644
--- a/channel.h
+++ b/channel.h
@@ -92,7 +92,7 @@ struct Channel {
struct ChanType {
- int sepfds; /* Whether this channel has seperate pipes for in/out or not */
+ int sepfds; /* Whether this channel has separate pipes for in/out or not */
char *name;
int (*inithandler)(struct Channel*);
int (*check_close)(struct Channel*);
diff --git a/scp.c b/scp.c
index 11c9665..710d9d2 100644
--- a/scp.c
+++ b/scp.c
@@ -437,7 +437,7 @@ main(int argc, char **argv)
}
/*
* Finally check the exit status of the ssh process, if one was forked
- * and no error has occured yet
+ * and no error has occurred yet
*/
if (do_cmd_pid != -1 && errs == 0) {
if (remin != -1)
diff --git a/svr-agentfwd.c b/svr-agentfwd.c
index 3c4daab..512cbd2 100644
--- a/svr-agentfwd.c
+++ b/svr-agentfwd.c
@@ -117,7 +117,7 @@ static void agentaccept(struct Listener *UNUSED(listener), int sock) {
}
/* set up the environment variable pointing to the socket. This is called
- * just before command/shell execution, after dropping priveleges */
+ * just before command/shell execution, after dropping privileges */
void svr_agentset(struct ChanSess * chansess) {
char *path = NULL;