afs-uuid-no-string-functions-in-kernel-20020701
authorDerrick Brashear <shadow@dementia.org>
Mon, 1 Jul 2002 17:26:29 +0000 (17:26 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 1 Jul 2002 17:26:29 +0000 (17:26 +0000)
some kernels have no sscanf. don't do it.

src/util/uuid.c

index d7f11e5..a923022 100644 (file)
@@ -145,6 +145,7 @@ uuid_time_p_t           time2; {
  *    Converts a string UUID to binary representation.
  */
 
+#ifndef KERNEL
 int
 afsUUID_from_string(const char *str, afsUUID *uuid)
 {
@@ -198,6 +199,7 @@ afsUUID_to_string(const afsUUID *uuid, char *str, size_t strsz)
 
     return 0;
 }
+#endif
 
 afs_int32 afs_uuid_create (uuid)
 afsUUID *uuid; {