summaryrefslogtreecommitdiff
path: root/progs/samples/rgbtoppm.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-01-01 17:54:11 -0800
committerVinson Lee <vlee@vmware.com>2010-01-01 17:54:11 -0800
commit646c8ce03217dbda87fd1f5aedddd3f75a477754 (patch)
tree792f87717dc7ea21654bd2b327521868322c99ea /progs/samples/rgbtoppm.c
parent2c64e4c50eaf7c3dd0cc95edbca1d31316baac3a (diff)
progs/samples: 'Silence no previous prototype' warnings.
Diffstat (limited to 'progs/samples/rgbtoppm.c')
-rw-r--r--progs/samples/rgbtoppm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/progs/samples/rgbtoppm.c b/progs/samples/rgbtoppm.c
index dcb74228df..adc91469e5 100644
--- a/progs/samples/rgbtoppm.c
+++ b/progs/samples/rgbtoppm.c
@@ -25,7 +25,7 @@ typedef struct _ImageRec {
int *rowSize;
} ImageRec;
-void
+static void
rgbtorgb(unsigned char *r,unsigned char *g,unsigned char *b,unsigned char *l,int n) {
while(n--) {
l[0] = r[0];
@@ -170,7 +170,7 @@ ImageGetRow(ImageRec *image, unsigned char *buf, int y, int z) {
}
}
-GLubyte *
+static GLubyte *
read_alpha_texture(char *name, int *width, int *height)
{
unsigned char *base, *lptr;
@@ -200,7 +200,7 @@ read_alpha_texture(char *name, int *width, int *height)
return (unsigned char *) base;
}
-GLubyte *
+static GLubyte *
read_rgb_texture(char *name, int *width, int *height)
{
unsigned char *base, *ptr;