aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sfx/device/devices.cpp
diff options
context:
space:
mode:
authorMax Horn2009-02-15 22:34:41 +0000
committerMax Horn2009-02-15 22:34:41 +0000
commit29611bc7ead4d3d5fc9df63c04dd9e2577805557 (patch)
tree42d26aab7ab2e7e97fe5b4763281d8071d878eed /engines/sci/sfx/device/devices.cpp
parent921e6ff5cf3944c1a62a3ad9a91c29bb21aa9942 (diff)
downloadscummvm-rg350-29611bc7ead4d3d5fc9df63c04dd9e2577805557.tar.gz
scummvm-rg350-29611bc7ead4d3d5fc9df63c04dd9e2577805557.tar.bz2
scummvm-rg350-29611bc7ead4d3d5fc9df63c04dd9e2577805557.zip
SCI: Run astyle to make the code be more compliant with our Code Formatting Guidelines: sfx dir
svn-id: r38322
Diffstat (limited to 'engines/sci/sfx/device/devices.cpp')
-rw-r--r--engines/sci/sfx/device/devices.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/engines/sci/sfx/device/devices.cpp b/engines/sci/sfx/device/devices.cpp
index f51c928d7e..6a89ee5df6 100644
--- a/engines/sci/sfx/device/devices.cpp
+++ b/engines/sci/sfx/device/devices.cpp
@@ -49,16 +49,16 @@ extern struct _midi_device sfx_device_midi_camd;
static struct _midi_device *devices_midi[] = {
#ifndef SCUMMVM
#ifdef HAVE_PROTO_CAMD_H
- &sfx_device_midi_camd,
+ &sfx_device_midi_camd,
#endif
#ifdef HAVE_ALSA
- &sfx_device_midi_alsa,
+ &sfx_device_midi_alsa,
#endif
#ifdef UNIX
- &sfx_device_midi_unixraw,
+ &sfx_device_midi_unixraw,
#endif
#endif // SCUMMVM
- NULL
+ NULL
};
static struct _midi_device *devices_opl2[] = {
@@ -76,8 +76,7 @@ struct _midi_device **devices[] = {
static struct _midi_device *
-find_dev(int type, char *name)
-{
+ find_dev(int type, char *name) {
int i = 0;
if (!type)
@@ -94,19 +93,18 @@ find_dev(int type, char *name)
void *
-sfx_find_device(int type, char *name)
-{
+sfx_find_device(int type, char *name) {
struct _midi_device *dev = find_dev(type, name);
if (dev) {
if (dev->init(dev)) {
fprintf(stderr, "[SFX] Opening device '%s' failed\n",
- dev->name);
+ dev->name);
return NULL;
}
return dev;
};
-
+
return NULL;
}