summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-10-07 18:16:00 +0200
committerJim Meyering <meyering@redhat.com>2007-10-07 18:16:07 +0200
commitabdb73fc1139e5e6c74e67be417e9a6714d3ec53 (patch)
tree464c5ffbab0c036c653590c8778e40800e553a24 /src
parentf62f1d302af156c832382bb4d9f9512c3f63af81 (diff)
downloadcoreutils-abdb73fc1139e5e6c74e67be417e9a6714d3ec53.tar.xz
Use puts, rather than printf ("%s\n". Slightly cleaner.
* src/tsort.c (tsort): ...and more efficient.
Diffstat (limited to 'src')
-rw-r--r--src/tsort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tsort.c b/src/tsort.c
index 7d413cc03..8ebacb4d8 100644
--- a/src/tsort.c
+++ b/src/tsort.c
@@ -1,5 +1,5 @@
/* tsort - topological sort.
- Copyright (C) 1998-2005 Free Software Foundation, Inc.
+ Copyright (C) 1998-2005, 2007 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -486,7 +486,7 @@ tsort (const char *file)
struct successor *p = head->top;
/* T5. Output front of queue. */
- printf ("%s\n", head->str);
+ puts (head->str);
head->str = NULL; /* Avoid printing the same string twice. */
n_strings--;