1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-02-26
Description: Drop strange redefinition of strdup() which is in string.h
--- a/src/coreTools/atoms_yaml.c
+++ b/src/coreTools/atoms_yaml.c
@@ -1270,19 +1270,7 @@ static int posinp_yaml_forces(yaml_parse
return done;
}
-#if SYSTEM_X11 == 1
-static char* strdup(const char *src)
-{
- char *dest;
- size_t ln;
- ln = strlen(src);
- dest = malloc(sizeof(char) * (ln + 1));
- memcpy(dest, src, sizeof(char) * ln);
- dest[ln] = '\0';
- return dest;
-}
-#endif
static int posinp_yaml_external_potential(const PosinpDict *dict, PosinpAtoms *atoms, char **message)
{
int done;
|