aboutsummaryrefslogtreecommitdiffstats
path: root/src/sound.c
diff options
context:
space:
mode:
authorJuanma Barranquero <[email protected]>2010-07-20 22:21:03 +0200
committerJuanma Barranquero <[email protected]>2010-07-20 22:21:03 +0200
commit7c3320d8b9d3beaf952b20cfe1843181c1c7af65 (patch)
tree188ab3f0c3582c2890365bd92939e32a6b01d44c /src/sound.c
parentaf4b9ae58662d50080a7661631ce6861dc6b6aa9 (diff)
Convert some more functions to standard C.
* lib-src/emacsclient.c (get_current_dir_name, w32_get_resource) (w32_getenv, w32_set_user_model_id, w32_window_app, w32_execvp) (close_winsock, initialize_sockets, w32_find_emacs_process) (w32_give_focus): * lib-src/ntlib.c (getlogin, getuid, getgid, getegid): * nt/addpm.c (add_registry, main): * nt/cmdproxy.c (get_env_size): * nt/ddeclient.c (main): * nt/runemacs.c (set_user_model_id): * src/alloc.c (emacs_blocked_free, emacs_blocked_malloc) (emacs_blocked_realloc, uninterrupt_malloc): * src/fringe.c (w32_reset_fringes): * src/image.c (convert_mono_to_color_image, lookup_rgb_color) (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper): * src/sound.c (be2hs, do_play_sound): * src/vm-limit.c (get_lim_data, ret_lim_data): * src/w32term.c (x_free_frame_resources): * src/xfaces.c (x_create_gc, x_free_gc): Convert definitions to standard C.
Diffstat (limited to 'src/sound.c')
-rw-r--r--src/sound.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/sound.c b/src/sound.c
index 2bf0b59ffd..e0ebd56515 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -522,8 +522,7 @@ be2hl (u_int32_t value)
to host byte-order. */
static u_int16_t
-be2hs (value)
- u_int16_t value;
+be2hs (u_int16_t value)
{
#ifndef WORDS_BIG_ENDIAN
unsigned char *p = (unsigned char *) &value;
@@ -1209,7 +1208,8 @@ alsa_write (struct sound_device *sd, const char *buffer, int nbytes)
}
static void
-snd_error_quiet (const char *file, int line, const char *function, int err, const char *fmt)
+snd_error_quiet (const char *file, int line, const char *function, int err,
+ const char *fmt)
{
}
@@ -1266,9 +1266,7 @@ alsa_init (struct sound_device *sd)
}
static int
-do_play_sound (psz_file, ui_volume)
- const char *psz_file;
- unsigned long ui_volume;
+do_play_sound (const char *psz_file, unsigned long ui_volume)
{
int i_result = 0;
MCIERROR mci_error = 0;