Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
02cc6c5f
Commit
02cc6c5f
authored
Dec 15, 2007
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
type cleanups. reduces memory usage on 64bit, no difference on 32bit. closes
#780
svn path=/icecast/trunk/icecast/; revision=14306
parent
7b6b874b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
10 deletions
+12
-10
src/client.h
src/client.h
+1
-1
src/format.c
src/format.c
+4
-2
src/fserve.c
src/fserve.c
+2
-2
src/refbuf.c
src/refbuf.c
+1
-1
src/refbuf.h
src/refbuf.h
+4
-4
No files found.
src/client.h
View file @
02cc6c5f
...
...
@@ -42,7 +42,7 @@ typedef struct _client_tag
refbuf_t
*
refbuf
;
/* position in first buffer */
unsigned
long
pos
;
unsigned
int
pos
;
/* auth used for this client */
struct
auth_tag
*
auth
;
...
...
src/format.c
View file @
02cc6c5f
...
...
@@ -26,7 +26,9 @@
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <time.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#include "connection.h"
#include "refbuf.h"
...
...
@@ -136,7 +138,7 @@ static int get_file_data (FILE *intro, client_t *client)
if
(
bytes
==
0
)
return
0
;
refbuf
->
len
=
bytes
;
refbuf
->
len
=
(
unsigned
int
)
bytes
;
return
1
;
}
...
...
src/fserve.c
View file @
02cc6c5f
...
...
@@ -236,7 +236,7 @@ static void wait_for_fds(void) {
static
void
*
fserv_thread_function
(
void
*
arg
)
{
fserve_t
*
fclient
,
**
trail
;
in
t
bytes
;
size_
t
bytes
;
INFO0
(
"file serving thread started"
);
while
(
run_fserv
)
{
...
...
@@ -270,7 +270,7 @@ static void *fserv_thread_function(void *arg)
client_tree_changed
=
1
;
continue
;
}
refbuf
->
len
=
bytes
;
refbuf
->
len
=
(
unsigned
int
)
bytes
;
client
->
pos
=
0
;
}
...
...
src/refbuf.c
View file @
02cc6c5f
...
...
@@ -33,7 +33,7 @@ void refbuf_shutdown(void)
{
}
refbuf_t
*
refbuf_new
(
unsigned
long
size
)
refbuf_t
*
refbuf_new
(
unsigned
int
size
)
{
refbuf_t
*
refbuf
;
...
...
src/refbuf.h
View file @
02cc6c5f
...
...
@@ -20,19 +20,19 @@
typedef
struct
_refbuf_tag
{
unsigned
int
len
;
unsigned
int
_count
;
char
*
data
;
unsigned
long
len
;
int
sync_point
;
struct
_refbuf_tag
*
associated
;
struct
_refbuf_tag
*
next
;
int
sync_point
;
unsigned
long
_count
;
}
refbuf_t
;
void
refbuf_initialize
(
void
);
void
refbuf_shutdown
(
void
);
refbuf_t
*
refbuf_new
(
unsigned
long
size
);
refbuf_t
*
refbuf_new
(
unsigned
int
size
);
void
refbuf_addref
(
refbuf_t
*
self
);
void
refbuf_release
(
refbuf_t
*
self
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment