X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5f8a647bcabed9fa873dd266735c3e58e9fd3c27..11db66726a4b2a8709d53f5714eea975adbdd64f:/src/xbt/snprintf.c diff --git a/src/xbt/snprintf.c b/src/xbt/snprintf.c index e4d51cada7..89df5fbaae 100644 --- a/src/xbt/snprintf.c +++ b/src/xbt/snprintf.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2005-2010, 2012-2014. The SimGrid Team. +/* Copyright (c) 2005-2010, 2012-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -321,7 +321,7 @@ #define LINUX_COMPATIBLE #endif -#include "portable.h" /* to get a working stdarg.h */ +#include "src/portable.h" /* to get a working stdarg.h */ #include #include @@ -432,16 +432,12 @@ int portable_vsnprintf(char *str, size_t str_m, const char *fmt, /* declarations */ -static char credits[] = "\n\ - @(#)snprintf.c, v2.2: Mark Martinec, \n\ - @(#)snprintf.c, v2.2: Copyright 1999, Mark Martinec. Frontier Artistic License applies.\n\ - @(#)snprintf.c, v2.2: http://www.ijs.si/software/snprintf/\n"; - -static void __foo__(void) -{ - printf("%s", credits); - __foo__(); -} +/* + Old copyright + snprintf.c, v2.2: Mark Martinec, + snprintf.c, v2.2: Copyright 1999, Mark Martinec. Frontier Artistic License applies. + snprintf.c, v2.2: http://www.ijs.si/software/snprintf +*/ #if defined(NEED_ASPRINTF) int asprintf(char **ptr, const char *fmt, /*args */ ...)