Revision: 54918
http://brlcad.svn.sourceforge.net/brlcad/?rev=54918&view=rev
Author: carlmoore
Date: 2013-03-27 18:22:13 +0000 (Wed, 27 Mar 2013)
Log Message:
-----------
program works the same but the source code has been slightly shortened
Modified Paths:
--------------
brlcad/trunk/src/util/pix-png.c
Modified: brlcad/trunk/src/util/pix-png.c
===================================================================
--- brlcad/trunk/src/util/pix-png.c 2013-03-27 16:30:10 UTC (rev 54917)
+++ brlcad/trunk/src/util/pix-png.c 2013-03-27 18:22:13 UTC (rev 54918)
@@ -62,9 +62,7 @@
int
get_args(int argc, char **argv, size_t *width, size_t *height, FILE **infp,
FILE **outfp)
{
- int c;
- int ttyin = 0;
- int ttyout = 0;
+ int c, ttyin, ttyout;
while ((c = bu_getopt(argc, argv, "ag:s:w:n:o:h?")) != -1) {
switch (c) {
@@ -114,10 +112,8 @@
fileinput++;
}
- if (isatty(fileno(*infp)))
- ttyin = 1;
- if (isatty(fileno(*outfp)))
- ttyout = 1;
+ ttyin = isatty(fileno(*infp));
+ ttyout = isatty(fileno(*outfp));
if (ttyin && ttyout && argc == 1)
return 0; /* usage */ /* running the command with no arguments (AND no
file pipes) */
if (ttyin)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits