diff options
author | Thomas White <taw@physics.org> | 2011-07-29 11:31:31 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:35 +0100 |
commit | 4656c53442ccc83cb5e92308cfe34cda118c560d (patch) | |
tree | e8c64c526af4c90b1f6d9dc072aeedb07021229f /src | |
parent | 90b6f53e9cdc77cfc7d5de2cd3990678e4cf0df5 (diff) |
Fix grammar
Diffstat (limited to 'src')
-rw-r--r-- | src/index.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c index f0845c3a..df2c5ee1 100644 --- a/src/index.c +++ b/src/index.c @@ -42,6 +42,13 @@ IndexingPrivate *indexing_private(IndexingMethod indm) } +static const char *maybes(int n) +{ + if ( n == 1 ) return ""; + return "s"; +} + + IndexingPrivate **prepare_indexing(IndexingMethod *indm, UnitCell *cell, const char *filename, struct detector *det, double nominal_photon_energy) @@ -51,7 +58,7 @@ IndexingPrivate **prepare_indexing(IndexingMethod *indm, UnitCell *cell, IndexingPrivate **iprivs; while ( indm[nm] != INDEXING_NONE ) nm++; - STATUS("Preparing %i indexing methods.\n", nm); + STATUS("Preparing %i indexing method%s.\n", nm, maybes(nm)); iprivs = malloc((nm+1) * sizeof(IndexingPrivate *)); for ( n=0; n<nm; n++ ) { |