Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
a9df391a
Commit
a9df391a
authored
12 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Fix warnings.
parent
2a8ca777
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/xpdev/xpbeep.c
+13
-0
13 additions, 0 deletions
src/xpdev/xpbeep.c
src/xpdev/xpprintf.c
+5
-4
5 additions, 4 deletions
src/xpdev/xpprintf.c
with
18 additions
and
4 deletions
src/xpdev/xpbeep.c
+
13
−
0
View file @
a9df391a
...
...
@@ -74,9 +74,15 @@ static size_t sample_size;
#endif
static
BOOL
sound_device_open_failed
=
FALSE
;
#ifdef USE_ALSA_SOUND
static
BOOL
alsa_device_open_failed
=
FALSE
;
#endif
#ifdef WITH_SDL_AUDIO
static
BOOL
sdl_device_open_failed
=
FALSE
;
#endif
#ifdef WITH_PORTAUDIO
static
BOOL
portaudio_device_open_failed
=
FALSE
;
#endif
enum
{
SOUND_DEVICE_CLOSED
...
...
@@ -644,8 +650,15 @@ BOOL xptone_close(void)
#endif
handle_type
=
SOUND_DEVICE_CLOSED
;
sound_device_open_failed
=
FALSE
;
#ifdef USE_ALSA_SOUND
alsa_device_open_failed
=
FALSE
;
#endif
#ifdef WITH_SDL_AUDIO
sdl_device_open_failed
=
FALSE
;
#endif
#ifdef WITH_PORTAUDIO
portaudio_device_open_failed
=
FALSE
;
#endif
return
(
TRUE
);
}
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/xpprintf.c
+
5
−
4
View file @
a9df391a
...
...
@@ -44,6 +44,7 @@
#endif
#include
"xpprintf.h"
#include
"gen_defs.h"
/* MSVC Sucks - can't tell the required len of a *printf() */
#define MAX_ARG_LEN 1024
/* MAX_ARG_LEN is the maximum length
...
...
@@ -900,7 +901,7 @@ char *xp_asprintf_next(char *format, int type, ...)
ll
=
ld
;
break
;
case
XP_PRINTF_TYPE_VOIDP
:
ll
=
(
long
long
)
pntr
;
ll
=
(
long
long
)
((
intptr_t
)
pntr
)
;
break
;
case
XP_PRINTF_TYPE_SIZET
:
ll
=
s
;
...
...
@@ -938,7 +939,7 @@ char *xp_asprintf_next(char *format, int type, ...)
ull
=
ld
;
break
;
case
XP_PRINTF_TYPE_VOIDP
:
ull
=
(
unsigned
long
long
int
)
pntr
;
ull
=
(
unsigned
long
long
int
)
((
uintptr_t
)
pntr
)
;
break
;
case
XP_PRINTF_TYPE_SIZET
:
ull
=
s
;
...
...
@@ -1099,10 +1100,10 @@ char *xp_asprintf_next(char *format, int type, ...)
break
;
#if defined(XP_PRINTF_TYPE_LONGLONG)
case
XP_PRINTF_TYPE_LONGLONG
:
pntr
=
(
void
*
)
ll
;
pntr
=
(
void
*
)
((
intptr_t
)
ll
)
;
break
;
case
XP_PRINTF_TYPE_ULONGLONG
:
pntr
=
(
void
*
)
ull
;
pntr
=
(
void
*
)
((
uintptr_t
)
ull
)
;
break
;
#endif
case
XP_PRINTF_TYPE_CHARP
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment