along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: dropin.c,v 1.1.2.3 2001/01/07 17:08:49 guus Exp $
+ $Id: dropin.c,v 1.1.2.4 2001/02/06 10:12:51 guus Exp $
*/
#include "config.h"
#include <xalloc.h>
#include <system.h>
+#include <errno.h>
#ifndef HAVE_DAEMON
/*
{
size_t size;
char *buf;
+ char *r;
/* Start with 100 bytes. If this turns out to be insufficient to
contain the working directory, double the size. */
r = getcwd(buf, size);
/* getcwd returns NULL and sets errno to ERANGE if the bufferspace
is insufficient to contain the entire working directory. */
- while(r == NULL && errno = ERANGE)
+ while(r == NULL && errno == ERANGE)
{
free(buf);
size <<= 1; /* double the size */
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: protocol.c,v 1.28.4.76 2001/01/08 20:35:30 guus Exp $
+ $Id: protocol.c,v 1.28.4.77 2001/02/06 10:12:51 guus Exp $
*/
#include "config.h"
return 0;
}
-int send_error(connection_t *cl, int errno, char *errstring)
+int send_error(connection_t *cl, int err, char *errstring)
{
cp
if(!errstring)
- errstring = strerror(errno);
- return send_request(cl, "%d %d %s", ERROR, errno, errstring);
+ errstring = strerror(err);
+ return send_request(cl, "%d %d %s", ERROR, err, errstring);
}
int error_h(connection_t *cl)