Skip to content

Commit afd9845

Browse files
authored
Clean up function prototypes for cc65. (#129)
1 parent 0dcf479 commit afd9845

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/atari/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,4 +320,4 @@ bool io_mount_all(void)
320320
// return OS.dcb.dstats; // 1 = successful, anything else = error.
321321
}
322322

323-
#endif /* BUILD_ATARI */
323+
#endif /* BUILD_ATARI */

src/atari/screen.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ void screen_select_file_display(char *p, char *f)
373373
screen_clear_line(FILES_START_Y - 1);
374374
}
375375

376-
void screen_select_file_display_long_filename(char *e)
376+
void screen_select_file_display_long_filename(const char *e)
377377
{
378378
screen_puts(0, 24, e);
379379
}
@@ -417,7 +417,7 @@ void screen_select_file_prev(void)
417417
}
418418
}
419419

420-
void screen_select_file_display_entry(unsigned char y, char *e, unsigned entryType)
420+
void screen_select_file_display_entry(unsigned char y, const char *e, unsigned entryType)
421421
{
422422

423423
/*
@@ -643,7 +643,7 @@ void screen_hosts_and_devices_host_slot_empty(unsigned char hs)
643643
screen_append(text_empty);
644644
}
645645

646-
void screen_hosts_and_devices_long_filename(char *f)
646+
void screen_hosts_and_devices_long_filename(const char *f)
647647
{
648648
// show_line_nums();
649649
}

src/atari/screen.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,18 @@ void screen_hosts_and_devices_edit_host_slot(unsigned char i);
7373
void screen_hosts_and_devices_eject(unsigned char ds);
7474
void screen_hosts_and_devices_host_slot_empty(unsigned char hs);
7575

76-
void screen_hosts_and_devices_long_filename(char *f);
76+
void screen_hosts_and_devices_long_filename(const char *f);
7777

7878
void screen_show_info(int printerEnabled, AdapterConfigExtended *ac);
7979

8080
void screen_select_file(void);
8181
void screen_select_file_display(char *p, char *f);
82-
void screen_select_file_display_long_filename(char *e);
82+
void screen_select_file_display_long_filename(const char *e);
8383
void screen_select_file_clear_long_filename(void);
8484
void screen_select_file_filter(void);
8585
void screen_select_file_next(void);
8686
void screen_select_file_prev(void);
87-
void screen_select_file_display_entry(unsigned char y, char *e, unsigned entryType);
87+
void screen_select_file_display_entry(unsigned char y, const char *e, unsigned entryType);
8888
void screen_select_file_choose(char visibleEntries);
8989
void screen_select_file_new_type(void);
9090
void screen_select_file_new_size(unsigned char k);

0 commit comments

Comments
 (0)