[AD] Patch to tidy up the _al_strdup() function (4.3.10)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


A while ago I submitted a patch for _al_strdup() similar to today's
_al_ustrdup() patch.  However, in the implemenetation of the function I
added a parameter that was const char instead of AL_CONST char, which is
inconsistent.  I was learning.  :-)

The attached tiny patch fixes that.

-- 
/-------------------------------------------------------------------\
[Hitman/Code HQ - 6502/z80/68000/604e/80x86/ARM coder - Amiga rulez!]
[VZ-200/VIC-20/MZ-700/c16/c64*10/c128*8/Plus-4/CPC464/CD32/500*2    ]
[600/1000/1200*2/A4000/SNES/N64/Dreamcast/Athlon 1100/AmigaOne      ]
[Assembly Language: The most fun you can have with your clothes on! ]
\-------------------------------------------------------------------/
--- src/allegro.c	(revision 11109)
+++ src/allegro.c	(working copy)
@@ -716,7 +716,7 @@
  *  uses any user overloaded memory allocation system in use.
  *  The result of this function _must_ be freed with _AL_FREE().
  */
-char *_al_strdup(const char *string)
+char *_al_strdup(AL_CONST char *string)
 {
    char *newstring = _AL_MALLOC(strlen(string) + 1);
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/