bridge: Fix format string type mismatch on some architectures
bridge: Fix format string type mismatch on some architectures

On some architectures a time_t is "long long", not "long", and
compilation fails with

    src/bridge/cockpitfsread.c:120:38: error: format '%ld' expects
    argument of type 'long int', but argument 3 has type '__time_t
    {aka long long int}' [-Werror=format=]
       return g_strdup_printf ("1:%lu-%ld.%ld",

Explicitly cast the time_t to long long which is 64 bit safe.

At least on x32, struct timeval's tv_nsec is misdefined to be a long
long, although the specification says "long". Work around this
by explicitly casting to long, which is a no-op on most platforms and
safe on x32 as tv_nsec never exceeds 1 billion. This works around
<http://bugs.debian.org/861026>.

Closes #6374
Reviewed-by: Peter <a316049dd34607c62d4611d63ab22a6454add223@redhat.com>

xhad/cockpit,larsu/cockpit,SotolitoLabs/cockpit,dperpeet/cockpit,larsu/cockpit,martinpitt/cockpit,stefwalter/cockpit,michalskrivanek/cockpit,dperpeet/cockpit,SotolitoLabs/cockpit,Scribery/cockpit,larskarlitski/cockpit,Scribery/cockpit,mareklibra/cockpit,michalskrivanek/cockpit,SotolitoLabs/cockpit,deryni/cockpit,cockpit-project/cockpit,deryni/cockpit,dperpeet/cockpit,harishanand95/cockpit,xhad/cockpit,andreasn/cockpit,larsu/cockpit,mareklibra/cockpit,larskarlitski/cockpit,stefwalter/cockpit,stefwalter/cockpit,dperpeet/cockpit,michalskrivanek/cockpit,moraleslazaro/cockpit,garrett/cockpit,andreasn/cockpit,Scribery/cockpit,moraleslazaro/cockpit,deryni/cockpit,larsu/cockpit,garrett/cockpit,larsu/cockpit,martinpitt/cockpit,mvollmer/cockpit,moraleslazaro/cockpit,Scribery/cockpit,martinpitt/cockpit,moraleslazaro/cockpit,michalskrivanek/cockpit,larskarlitski/cockpit,xhad/cockpit,Scribery/cockpit,deryni/cockpit,larsu/cockpit,petervo/cockpit,andreasn/cockpit,larskarlitski/cockpit,mvollmer/cockpit,michalskrivanek/cockpit,garrett/cockpit,harishanand95/cockpit,dperpeet/cockpit,andreasn/cockpit,garrett/cockpit,mareklibra/cockpit,moraleslazaro/cockpit,petervo/cockpit,xhad/cockpit,xhad/cockpit,deryni/cockpit,mareklibra/cockpit,stefwalter/cockpit,dperpeet/cockpit,harishanand95/cockpit,mvollmer/cockpit,SotolitoLabs/cockpit,deryni/cockpit,michalskrivanek/cockpit,andreasn/cockpit,cockpituous/cockpit,harishanand95/cockpit,cockpituous/cockpit,stefwalter/cockpit,xhad/cockpit,SotolitoLabs/cockpit,cockpit-project/cockpit,mareklibra/cockpit,xhad/cockpit,petervo/cockpit,dperpeet/cockpit,larskarlitski/cockpit,martinpitt/cockpit,cockpit-project/cockpit,cockpituous/cockpit,michalskrivanek/cockpit,garrett/cockpit,harishanand95/cockpit,stefwalter/cockpit,SotolitoLabs/cockpit,larskarlitski/cockpit,mareklibra/cockpit,andreasn/cockpit,mvollmer/cockpit,petervo/cockpit,petervo/cockpit,harishanand95/cockpit,stefwalter/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,petervo/cockpit,mvollmer/cockpit,martinpitt/cockpit,Scribery/cockpit,petervo/cockpit,moraleslazaro/cockpit,deryni/cockpit,mareklibra/cockpit,cockpit-project/cockpit,andreasn/cockpit,harishanand95/cockpit,cockpituous/cockpit,Scribery/cockpit,cockpituous/cockpit,cockpituous/cockpit,larskarlitski/cockpit,SotolitoLabs/cockpit