www.delorie.com/archives/browse.cgi | search |
>>> On Wed, 24 Nov 1999 20:56:52 -0500 >>> Chris Faylor <cgf AT cygnus DOT com> said: > In that case, why even use an intermediate variable? Why not just check > the results from bind and getsockname directly? There is no reason... I carelessly failed to notice there is no need of it. > Index: net.cc ... > else > { > _close (fd); > chmod (un_addr->sun_path, > (S_IFSOCK | S_IRWXU | S_IRWXG | S_IRWXO) & ~myself->umask); > - res = 0; > } It is overkill. No one can set `res' to 0. ____ | AIST Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp> | HOKURIKU School of Information Science o_/ 1990 Japan Advanced Institute of Science and Technology
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |