summaryrefslogtreecommitdiffstats
path: root/source/history.c
diff options
context:
space:
mode:
authorQC <qball@gmpclient.org>2014-05-25 23:32:06 +0200
committerQC <qball@gmpclient.org>2014-05-25 23:32:06 +0200
commit56a911129d995fafb98a49557ff2083a2cd0c885 (patch)
tree7e7dcc9152c853bb61c89c3758db193eb91d924a /source/history.c
parent71b6f8becd3d1e479838e7d49e22411d0c4e980f (diff)
Re-use XftFont instead of recreating it each and every time.
Diffstat (limited to 'source/history.c')
-rw-r--r--source/history.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/history.c b/source/history.c
index a41a44bc..67aa8f4b 100644
--- a/source/history.c
+++ b/source/history.c
@@ -59,7 +59,7 @@ static void __history_write_element_list ( FILE *fd, _element **list, unsigned i
qsort ( list, length, sizeof ( _element* ), __element_sort_func );
// Get minimum index.
- int min_value = list[length-1]->index;
+ int min_value = list[length - 1]->index;
// Set the max length of the list.
length = ( length > HISTORY_MAX_ENTRIES ) ? HISTORY_MAX_ENTRIES : length;
@@ -67,7 +67,7 @@ static void __history_write_element_list ( FILE *fd, _element **list, unsigned i
// Write out entries.
for ( unsigned int iter = 0; iter < length; iter++ )
{
- fprintf ( fd, "%ld %s\n", list[iter]->index-min_value, list[iter]->name );
+ fprintf ( fd, "%ld %s\n", list[iter]->index - min_value, list[iter]->name );
}
}