From: Martin Mares Date: Tue, 21 May 2002 15:14:55 +0000 (+0000) Subject: Changed null version of prof_format(), so that we don't need string.h. X-Git-Tag: holmes-import~1431 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b43d84acbfeda1c4fef670fc9a7914f7053fab76;p=libucw.git Changed null version of prof_format(), so that we don't need string.h. --- 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