[vmd] errror -> error

2018-04-25 Thread llgxela
Hi,

I spotted a couple more typos:

Index: vioscsi.c
===
RCS file: /cvs/src/usr.sbin/vmd/vioscsi.c,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 vioscsi.c
--- vioscsi.c   19 Jan 2018 14:23:52 -  1.4
+++ vioscsi.c   25 Apr 2018 17:49:33 -
@@ -203,7 +203,7 @@ vioscsi_start_read(struct vioscsi_dev *d
 
 nomem:
free(info);
-   log_warn("malloc errror vioscsi read");
+   log_warn("malloc error vioscsi read");
return (NULL);
 }
 
Index: virtio.c
===
RCS file: /cvs/src/usr.sbin/vmd/virtio.c,v
retrieving revision 1.56
diff -u -p -u -p -r1.56 virtio.c
--- virtio.c1 Feb 2018 18:33:27 -   1.56
+++ virtio.c25 Apr 2018 17:49:33 -
@@ -363,7 +363,7 @@ vioblk_start_read(struct vioblk_dev *dev
 
 nomem:
free(info);
-   log_warn("malloc errror vioblk read");
+   log_warn("malloc error vioblk read");
return (NULL);
 }
 
@@ -404,7 +404,7 @@ vioblk_start_write(struct vioblk_dev *de
 
 nomem:
free(info);
-   log_warn("malloc errror vioblk write");
+   log_warn("malloc error vioblk write");
return (NULL);
 }


Thank you 



[vmd] recevied -> received in error message

2018-04-20 Thread llgxela
Hi,

There seems to be a typo in vmd.c:

Index: vmd.c
===
RCS file: /cvs/src/usr.sbin/vmd/vmd.c,v
retrieving revision 1.82
diff -u -p -u -p -r1.82 vmd.c
--- vmd.c   29 Mar 2018 18:29:24 -  1.82
+++ vmd.c   20 Apr 2018 19:50:24 -
@@ -228,7 +228,7 @@ vmd_dispatch_control(int fd, struct priv
}
if (atomicio(read, imsg->fd, , sizeof(vmh)) !=
sizeof(vmh)) {
-   log_warnx("%s: error reading vmh from recevied vm",
+   log_warnx("%s: error reading vmh from received vm",
__func__);
res = EIO;
close(imsg->fd);
@@ -243,7 +243,7 @@ vmd_dispatch_control(int fd, struct priv
}
if (atomicio(read, imsg->fd, , sizeof(vmc)) !=
sizeof(vmc)) {
-   log_warnx("%s: error reading vmc from recevied vm",
+   log_warnx("%s: error reading vmc from received vm",
__func__);
res = EIO;
close(imsg->fd);

Thank you



Eliminate trailing whitespace & typo in chmod

2018-04-13 Thread llgxela
> > Index: chmod.c
> > ===
> > RCS file: /cvs/src/bin/chmod/chmod.c,v
> > retrieving revision 1.42
> > diff -u -p -u -p -r1.42 chmod.c
> > --- chmod.c 28 May 2017 08:03:36 -  1.42
> > +++ chmod.c 13 Apr 2018 17:46:36 -
> > @@ -253,10 +253,10 @@ done:
> >
> > /*
> >  * For -RH, the decision of how to handle symlinks depends
> > -* on the level: follow it iff it's a command line arg.
> > +* on the level: follow it if it's a command line arg.
> >  */
> 
> "iff" is not a typo.

Oops, sorry, my bad. I hope the following one is ok:

Index: chmod.c
===
RCS file: /cvs/src/bin/chmod/chmod.c,v
retrieving revision 1.42
diff -u -p -u -p -r1.42 chmod.c
--- chmod.c 28 May 2017 08:03:36 -  1.42
+++ chmod.c 13 Apr 2018 19:07:58 -
@@ -256,7 +256,7 @@ done:
 * on the level: follow it iff it's a command line arg.
 */
if (fts_options & FTS_COMFOLLOW) {
-   atflags = p->fts_level == FTS_ROOTLEVEL ? 0 : 
+   atflags = p->fts_level == FTS_ROOTLEVEL ? 0 :
AT_SYMLINK_NOFOLLOW;
}
 



Eliminate trailing whitespace & typo in chmod

2018-04-13 Thread llgxela
Index: chmod.c
===
RCS file: /cvs/src/bin/chmod/chmod.c,v
retrieving revision 1.42
diff -u -p -u -p -r1.42 chmod.c
--- chmod.c 28 May 2017 08:03:36 -  1.42
+++ chmod.c 13 Apr 2018 17:46:36 -
@@ -253,10 +253,10 @@ done:
 
/*
 * For -RH, the decision of how to handle symlinks depends
-* on the level: follow it iff it's a command line arg.
+* on the level: follow it if it's a command line arg.
 */
if (fts_options & FTS_COMFOLLOW) {
-   atflags = p->fts_level == FTS_ROOTLEVEL ? 0 : 
+   atflags = p->fts_level == FTS_ROOTLEVEL ? 0 :
AT_SYMLINK_NOFOLLOW;
}