142 |
|
* Locale hook - returns string for given ID |
143 |
|
*/ |
144 |
|
|
145 |
+ |
#ifdef __GNUC__ |
146 |
+ |
static __saveds __attribute__((regparm(3))) const char *locale_hook_func(struct Hook *hook /*a0*/, void *id /*a1*/, struct LayoutHandle *h /*a2*/) |
147 |
+ |
#else |
148 |
|
static __saveds __regargs const char *locale_hook_func(struct Hook *hook /*a0*/, void *id /*a1*/, struct LayoutHandle *h /*a2*/) |
149 |
+ |
#endif |
150 |
|
{ |
151 |
|
return GetString((uint32)id); |
152 |
|
} |
1071 |
|
|
1072 |
|
if (strlen(scsi_dev[i])) { |
1073 |
|
char str[256]; |
1074 |
< |
sprintf("%s/%ld", scsi_dev[i], scsi_unit[i]); |
1074 |
> |
sprintf(str, "%s/%ld", scsi_dev[i], scsi_unit[i]); |
1075 |
|
PrefsReplaceString(prefs_name, str); |
1076 |
|
} else |
1077 |
|
PrefsRemoveItem(prefs_name); |