aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-07-29 11:31:31 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:35 +0100
commit4656c53442ccc83cb5e92308cfe34cda118c560d (patch)
treee8c64c526af4c90b1f6d9dc072aeedb07021229f /src/index.c
parent90b6f53e9cdc77cfc7d5de2cd3990678e4cf0df5 (diff)
Fix grammar
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c9
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++ ) {