A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

iriverify: Fix a build warning

Change-Id: I12a50a8e71c50c232dad89342f59f5afe8d0aace

+7 -7
+7 -7
apps/plugins/iriverify.c
··· 31 31 static char *filename; 32 32 static int readsize; 33 33 static char *stringbuffer; 34 - static char crlf[2] = "\r\n"; 34 + static char crlf[2] __NONSTRING = "\r\n"; 35 35 36 36 int read_buffer(int offset) 37 37 { 38 38 int fd; 39 - 39 + 40 40 fd = rb->open(filename, O_RDONLY); 41 41 if(fd < 0) 42 42 return 10 * fd - 1; ··· 64 64 char *str_begin; 65 65 66 66 /* Create a temporary file */ 67 - 67 + 68 68 rb->snprintf(tmpfilename, MAX_PATH+1, "%s.tmp", filename); 69 - 69 + 70 70 fd = rb->creat(tmpfilename, 0666); 71 71 if(fd < 0) 72 72 return 10 * fd - 1; ··· 83 83 /* We have no complete string ? It's only a leading \n or \r ? */ 84 84 if (!str_begin) 85 85 continue; 86 - 86 + 87 87 /* Terminate string */ 88 88 *buf_ptr = 0; 89 89 ··· 126 126 if(rc < 0) { 127 127 return 10 * rc - 5; 128 128 } 129 - 129 + 130 130 return 0; 131 131 } 132 132 ··· 144 144 FOR_NB_SCREENS(i) 145 145 rb->screens[i]->clear_display(); 146 146 rb->splash(0, "Converting..."); 147 - 147 + 148 148 rc = read_buffer(0); 149 149 FOR_NB_SCREENS(i) 150 150 rb->screens[i]->clear_display();