~ubuntu-branches/ubuntu/karmic/dante/karmic

« back to all changes in this revision

Viewing changes to sockd/log.c

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Bridgett
  • Date: 2003-11-15 18:59:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20031115185933-vkxgk8f226ovwmrh
Tags: 1.1.14-2
improve extended descriptions (closes: #209510, #210116)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 1997, 1998, 1999, 2000, 2001
 
2
 * Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003
3
3
 *      Inferno Nettverk A/S, Norway.  All rights reserved.
4
4
 *
5
5
 * Redistribution and use in source and binary forms, with or without
44
44
#include "common.h"
45
45
 
46
46
static const char rcsid[] =
47
 
"$Id: log.c,v 1.59 2001/12/12 14:42:12 karls Exp $";
 
47
"$Id: log.c,v 1.61 2003/07/01 13:21:30 michaels Exp $";
48
48
 
49
49
__BEGIN_DECLS
50
50
 
154
154
                        socks_lock(sockscf.log.fplockv[i], F_WRLCK, -1);
155
155
                        fprintf(sockscf.log.fpv[i], "%s%s",
156
156
                        buf, buf[strlen(buf) - 1] == '\n' ? "" : "\n");
157
 
/*                      fflush(sockscf.log.fpv[i]); */ /* XXX needed or not?  why? */
 
157
/*                      fflush(sockscf.log.fpv[i]); */ /* should not be needed. */
158
158
                        socks_unlock(sockscf.log.fplockv[i]);
159
159
 
160
160
#if SOCKS_CLIENT && SOCKSLIBRARY_DYNAMIC