starter_conn_t.id is an unsigned long.
authorTobias Brunner <tobias@strongswan.org>
Thu, 14 Apr 2011 09:25:31 +0000 (11:25 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 14 Apr 2011 16:10:27 +0000 (18:10 +0200)
src/starter/starterstroke.c

index f251667..7272b25 100644 (file)
@@ -118,7 +118,7 @@ static char* connection_name(starter_conn_t *conn)
 
        if (streq(conn->name, "%auto"))
        {
-               sprintf(buf, "conn_%ld", conn->id);
+               sprintf(buf, "conn_%lu", conn->id);
                return buf;
        }
        return conn->name;