From fa16561ca935676b2ede0c04152d64a0b5112504 Mon Sep 17 00:00:00 2001 From: Fergus Henderson Date: Tue, 3 Dec 2002 07:41:40 +0000 Subject: [PATCH] Fix an ANSI/ISO C conformance problem that broke the build with lcc: Estimated hours taken: 0.25 Branches: main, release deep_profiler/timeout.m: Fix an ANSI/ISO C conformance problem that broke the build with lcc: use "\\n" rather than "\n" in pragma c_code fragments. --- deep_profiler/timeout.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deep_profiler/timeout.m b/deep_profiler/timeout.m index 630031262..3fe969f42 100644 --- a/deep_profiler/timeout.m +++ b/deep_profiler/timeout.m @@ -166,9 +166,9 @@ MP_maybe_print_cleanup_files(const char *msg) int i; if (MP_print_cleanup_files) { - fprintf(stderr, ""\n%s cleanup files:\n"", msg); + fprintf(stderr, ""\\n%s cleanup files:\\n"", msg); for (i = 0; i < MP_cleanup_file_next; i++) { - fprintf(stderr, ""%i %s\n"", i, MP_cleanup_files[i]); + fprintf(stderr, ""%i %s\\n"", i, MP_cleanup_files[i]); } } } @@ -264,7 +264,7 @@ MP_delete_cleanup_files_and_exit_failure(const char *signal_name) #ifdef MP_DEBUG_MDPROF_SIGNAL fp = fopen(""/tmp/mdprof_signal"", ""w""); if (fp != NULL) { - fprintf(fp, ""%s\n"", signal_name); + fprintf(fp, ""%s\\n"", signal_name); (void) fclose(fp); } #endif