From b43d84acbfeda1c4fef670fc9a7914f7053fab76 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 21 May 2002 15:14:55 +0000 Subject: [PATCH] Changed null version of prof_format(), so that we don't need string.h. --- lib/profile.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/profile.h b/lib/profile.h index 8acb34ab..1332d21e 100644 --- a/lib/profile.h +++ b/lib/profile.h @@ -17,8 +17,6 @@ * printf("%s\n", PROF_STRING(&cnt)); */ -#include - /* PROFILE_TOD: gettimeofday() profiler */ struct prof_tod { @@ -132,7 +130,7 @@ static inline void prof_init(prof_t *c UNUSED) { } static inline void prof_start(prof_t *c UNUSED) { } static inline void prof_stop(prof_t *c UNUSED) { } static inline void prof_switch(prof_t *c UNUSED, prof_t *d UNUSED) { } -static inline void prof_format(char *b, prof_t *c UNUSED) { strcpy(b, "?"); } +static inline void prof_format(char *b, prof_t *c UNUSED) { b[0]='?'; b[1]=0; } #define PROF_STR_SIZE 2 #endif -- 2.39.5