Skip to content

Commit 791b1a4

Browse files
committed
t_symbol->s_name is (const char*)
1 parent d83562a commit 791b1a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

binfile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ typedef struct t_binfile
5555

5656
static void binfile_rewind (t_binfile *x);
5757
static void binfile_free(t_binfile *x);
58-
static FILE *binfile_open_path(t_binfile *x, char *path, char *mode);
58+
static FILE *binfile_open_path(t_binfile *x, const char *path, const char *mode);
5959
static void binfile_read(t_binfile *x, t_symbol *path, t_float max_bytes);
6060
static void binfile_write(t_binfile *x, t_symbol *path);
6161
static void binfile_bang(t_binfile *x);
@@ -138,7 +138,7 @@ static void binfile_free(t_binfile *x)
138138
x->x_buf_length = 0L;
139139
}
140140

141-
static FILE *binfile_open_path(t_binfile *x, char *path, char *mode)
141+
static FILE *binfile_open_path(t_binfile *x, const char *path, const char *mode)
142142
/* path is a string. Up to PATH_BUF_SIZE-1 characters will be copied into x->x_fPath. */
143143
/* mode should be "rb" or "wb" */
144144
/* x->x_fPath will be used as a file name to open. */

0 commit comments

Comments
 (0)