Set parameters const where possible

This commit is contained in:
hasufell 2014-05-06 23:29:01 +02:00
parent 44e715db88
commit f517f548d8
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@
/*
* static function declarations
*/
static char *read_file(char *filename);
static char *read_file(char const * const filename);
/**
@ -42,7 +42,7 @@ static char *read_file(char *filename);
* @param filename .obj file
* @return the HE_face array that represents the object
*/
HE_face *parse_obj(char *filename)
HE_face *parse_obj(char const * const filename)
{
unsigned int vc;
char *string,
@ -110,7 +110,7 @@ HE_face *parse_obj(char *filename)
* @param filename file to open
* @return newly allocated string, must be freed by the caller
*/
static char *read_file(char *filename)
static char *read_file(char const * const filename)
{
char buf[STD_FILE_BUF],
*string = malloc(STD_FILE_BUF);

View File

@ -20,7 +20,7 @@
#define _DROW_ENGINE_PARSER_H
void parse_obj(char *filename);
void parse_obj(char const * const filename);
#endif /* _DROW_ENGINE_PARSER_H */