From: Adam Dickmeiss Date: Mon, 3 Jan 2005 19:33:22 +0000 (+0000) Subject: Cast pid type to long for printf format X-Git-Tag: snippet.version.1~192 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=5b79d46da9455cea15809443c9290376df384873;p=idzebra-moved-to-github.git Cast pid type to long for printf format --- diff --git a/index/main.c b/index/main.c index 47838a1..615f185 100644 --- a/index/main.c +++ b/index/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.119 2004-12-13 20:51:30 adam Exp $ +/* $Id: main.c,v 1.120 2005-01-03 19:33:22 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -77,7 +77,7 @@ int main (int argc, char **argv) #ifdef WIN32 #else - sprintf(nbuf, "%.40s(%d)", *argv, getpid()); + sprintf(nbuf, "%.40s(%ld)", *argv, (long) getpid()); yaz_log_init_prefix (nbuf); #endif #if HAVE_SYS_TIMES_H