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

« back to all changes in this revision

Viewing changes to sockd/bandwidth.c

  • Committer: Bazaar Package Importer
  • Author(s): Peter Pentchev
  • Date: 2008-08-22 13:02:45 UTC
  • mfrom: (1.1.4 upstream) (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20080822130245-8db86zgghz4ceu20
Tags: 1.1.19.dfsg-2
* Since the "new" binary package libdsocksd0 extracts a library that
  was formerly in dante-client, it should conflict and replace old
  versions of dante-client.  Closes: #494712.
* Remove the "debian/copyright line too long" lintian overrides, since
  the check was dropped from lintian in both unstable and testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
#include <math.h> /* XXX */
47
47
 
48
48
static const char rcsid[] =
49
 
"$Id: bandwidth.c,v 1.6 2003/07/02 12:10:50 karls Exp $";
 
49
"$Id: bandwidth.c,v 1.12 2005/11/02 12:11:28 michaels Exp $";
50
50
 
51
51
const char module_bandwidth_version[] =
52
 
"$Id: bandwidth.c,v 1.6 2003/07/02 12:10:50 karls Exp $";
53
 
 
54
 
 
55
 
void
56
 
bwsetup(void)
57
 
{
58
 
 
59
 
}
60
 
 
61
 
void
62
 
bwuse(bw)
 
52
"$Id: bandwidth.c,v 1.12 2005/11/02 12:11:28 michaels Exp $";
 
53
 
 
54
 
 
55
int
 
56
bw_use(bw)
63
57
        bw_t *bw;
64
58
{
 
59
        return 1;
 
60
}
65
61
 
 
62
bw_t *
 
63
bw_alloc(client, number)
 
64
        int client;
 
65
        int number;
 
66
{
 
67
        return NULL;
66
68
}
67
69
 
68
70
void
69
 
bwfree(bw)
 
71
bw_unuse(bw)
70
72
        bw_t *bw;
71
73
{
72
74
 
73
75
}
74
76
 
75
77
ssize_t
76
 
bwleft(bw)
 
78
bw_left(bw)
77
79
        const bw_t *bw;
78
80
{
79
81
 
81
83
}
82
84
 
83
85
void
84
 
bwupdate(bw, bwused, bwusedtime)
 
86
bw_update(bw, bwused, bwusedtime)
85
87
        bw_t *bw;
86
88
        size_t bwused;
87
89
        const struct timeval *bwusedtime;
90
92
}
91
93
 
92
94
struct timeval *
93
 
isbwoverflow(bw, timenow, overflow)
 
95
bw_isoverflow(bw, timenow, overflow)
94
96
        bw_t *bw;
95
97
        const struct timeval *timenow;
96
98
        struct timeval *overflow;