~ubuntu-branches/ubuntu/oneiric/daemontools/oneiric

« back to all changes in this revision

Viewing changes to daemontools-0.76/src/taia_less.c

  • Committer: Bazaar Package Importer
  • Author(s): Gerrit Pape
  • Date: 2008-04-16 21:20:38 UTC
  • Revision ID: james.westby@ubuntu.com-20080416212038-2ix54o7w5m8lpvni
Tags: upstream-0.76
ImportĀ upstreamĀ versionĀ 0.76

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Public domain. */
 
2
 
 
3
#include "taia.h"
 
4
 
 
5
/* XXX: breaks tai encapsulation */
 
6
 
 
7
int taia_less(const struct taia *t,const struct taia *u)
 
8
{
 
9
  if (t->sec.x < u->sec.x) return 1;
 
10
  if (t->sec.x > u->sec.x) return 0;
 
11
  if (t->nano < u->nano) return 1;
 
12
  if (t->nano > u->nano) return 0;
 
13
  return t->atto < u->atto;
 
14
}