ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/AmigaOS/prefs_editor_amiga.cpp
(Generate patch)

Comparing BasiliskII/src/AmigaOS/prefs_editor_amiga.cpp (file contents):
Revision 1.2 by cebix, 1999-10-19T19:28:16Z vs.
Revision 1.4 by cebix, 1999-10-25T19:01:32Z

# Line 142 | Line 142 | static void read_settings(struct LayoutH
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   }
# Line 1067 | Line 1071 | static void read_scsi_settings(void)
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines