Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
182746b9
Commit
182746b9
authored
Sep 09, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timer: constant pointers
The audio_format argument to timer_new() should be constant, because it is not modified. The same is true for ShoutData.audioFormat.
parent
35494158
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
audioOutput_shout.c
src/audioOutputs/audioOutput_shout.c
+1
-1
timer.c
src/timer.c
+1
-1
timer.h
src/timer.h
+1
-1
No files found.
src/audioOutputs/audioOutput_shout.c
View file @
182746b9
...
...
@@ -65,7 +65,7 @@ typedef struct _ShoutData {
Timer
*
timer
;
/* just a pointer to audioOutput->outAudioFormat */
struct
audio_format
*
audioFormat
;
const
struct
audio_format
*
audioFormat
;
}
ShoutData
;
static
ShoutData
*
newShoutData
(
void
)
...
...
src/timer.c
View file @
182746b9
...
...
@@ -30,7 +30,7 @@ static uint64_t now(void)
return
((
uint64_t
)
tv
.
tv_sec
*
1000000
)
+
tv
.
tv_usec
;
}
Timer
*
timer_new
(
struct
audio_format
*
af
)
Timer
*
timer_new
(
const
struct
audio_format
*
af
)
{
Timer
*
timer
;
...
...
src/timer.h
View file @
182746b9
...
...
@@ -29,7 +29,7 @@ typedef struct _Timer {
int
rate
;
}
Timer
;
Timer
*
timer_new
(
struct
audio_format
*
af
);
Timer
*
timer_new
(
const
struct
audio_format
*
af
);
void
timer_free
(
Timer
*
timer
);
...
...
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