summaryrefslogtreecommitdiff
path: root/src/input/pnm.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-07 14:48:57 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-07 14:48:57 +0200
commitde4e5cbc53859edf5a2e75331988e9e39d1253d9 (patch)
tree276f3ea059f99810905c2663fe85463a4976b06f /src/input/pnm.c
parent21a17f3606536fb72209338f11c61ec634954336 (diff)
downloadxine-lib-de4e5cbc53859edf5a2e75331988e9e39d1253d9.tar.gz
xine-lib-de4e5cbc53859edf5a2e75331988e9e39d1253d9.tar.bz2
Mark internal functions and data structures static.
Functions and data structures that are not exported and are only ever used in the same unit they are defined should be marked static to improve compiler's ability to optimise them. This applies to xine_dispose_internal() function for xine-lib, the extended_to_int() function in the AIFF demuxer, the bandwidths array in QuickTime demuxer, the wc_pal_lookup table in the WC3 movie demuxer, and the rm_header and pnm_data_header arrays in pnm input plugin.
Diffstat (limited to 'src/input/pnm.c')
-rw-r--r--src/input/pnm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/pnm.c b/src/input/pnm.c
index 38d65b850..3516ab262 100644
--- a/src/input/pnm.c
+++ b/src/input/pnm.c
@@ -90,7 +90,7 @@ struct pnm_s {
/* header of rm files */
#define RM_HEADER_SIZE 0x12
-const unsigned char rm_header[]={
+static const unsigned char rm_header[]={
0x2e, 0x52, 0x4d, 0x46, /* object_id ".RMF" */
0x00, 0x00, 0x00, 0x12, /* header_size 0x12 */
0x00, 0x00, /* object_version 0x00 */
@@ -100,7 +100,7 @@ const unsigned char rm_header[]={
/* data chunk header */
#define PNM_DATA_HEADER_SIZE 18
-const unsigned char pnm_data_header[]={
+static const unsigned char pnm_data_header[]={
'D','A','T','A',
0,0,0,0, /* data chunk size */
0,0, /* object version */