* create format strings different for solaris
[citadel.git] / citadel / tools.c
index 4927e18d4d72a1c87d089f22b385f39034771c4b..0f85643ee1ad003b2db388e7bf0bc17af6103136 100644 (file)
@@ -593,7 +593,7 @@ char *strcpy(char *dest, const char *src) {
 void generate_uuid(char *buf) {
        static int seq = 0;
 
-       sprintf(buf, "%lx-%x-%x",
+       sprintf(buf, "%lx-"F_XPID_T"-%x",
                time(NULL),
                getpid(),
                (seq++)
@@ -670,7 +670,7 @@ void CtdlMakeTempFileName(char *name, int len) {
        int i = 0;
 
        while (i++, i < 100) {
-               snprintf(name, len, "/tmp/ctdl.%04x.%04x",
+               snprintf(name, len, "/tmp/ctdl."F_XPID_T".%04x",
                        getpid(),
                        rand()
                );