Mercurial > hg > early-roguelike
comparison srogue/options.c @ 283:d71e5e1f49cf
Fix a few more compiler warnings.
| author | John "Elwin" Edwards |
|---|---|
| date | Mon, 18 Sep 2017 19:36:14 -0400 |
| parents | 94a0d9dd5ce1 |
| children |
comparison
equal
deleted
inserted
replaced
| 282:8b6aba552f6f | 283:d71e5e1f49cf |
|---|---|
| 232 * copy string using unctrl for things | 232 * copy string using unctrl for things |
| 233 */ | 233 */ |
| 234 void | 234 void |
| 235 strucpy(char *s1, char *s2, int len) | 235 strucpy(char *s1, char *s2, int len) |
| 236 { | 236 { |
| 237 reg char *sp; | 237 const char *sp; |
| 238 | 238 |
| 239 while (len-- > 0) { | 239 while (len-- > 0) { |
| 240 strcpy(s1, (sp = unctrl(*s2))); | 240 strcpy(s1, (sp = unctrl(*s2))); |
| 241 s1 += strlen(sp); | 241 s1 += strlen(sp); |
| 242 s2++; | 242 s2++; |
