]> mj.ucw.cz Git - libucw.git/commitdiff
Changed null version of prof_format(), so that we don't need string.h.
authorMartin Mares <mj@ucw.cz>
Tue, 21 May 2002 15:14:55 +0000 (15:14 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 21 May 2002 15:14:55 +0000 (15:14 +0000)
lib/profile.h

index 8acb34abc30eefd4eff1c426775fbde630f526c7..1332d21e33292825818a3a8274181ba72b31a242 100644 (file)
@@ -17,8 +17,6 @@
  *             printf("%s\n", PROF_STRING(&cnt));
  */
 
-#include <string.h>
-
 /* 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