Permalink
Browse files

change a comment

  • Loading branch information...
1 parent eeafc11 commit 00429c22df2816dac503e26f7fa9176528ecc9c2 @oblique committed Mar 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 wificurse.c
View
4 wificurse.c
@@ -181,7 +181,7 @@ int iw_set_channel(struct dev *dev, int chan) {
int rcvbuflen, old_rcvbuflen;
socklen_t optlen;
- /* get receive buffer size */
+ /* save current receive buffer size */
optlen = sizeof(old_rcvbuflen);
if (getsockopt(dev->fd, SOL_SOCKET, SO_RCVBUF, &old_rcvbuflen, &optlen) < 0)
return_error("getsockopt(SO_RCVBUF)");
@@ -201,7 +201,7 @@ int iw_set_channel(struct dev *dev, int chan) {
return_error("ioctl(SIOCSIWFREQ)");
dev->chan = chan;
- /* restore the default buffer size */
+ /* restore receive buffer size */
if (setsockopt(dev->fd, SOL_SOCKET, SO_RCVBUF, &old_rcvbuflen, optlen) < 0)
return_error("setsockopt(SO_RCVBUF)");

0 comments on commit 00429c2

Please sign in to comment.