IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18846


Ignore:
Timestamp:
Aug 1, 2008, 8:38:57 AM (18 years ago)
Author:
Paul Price
Message:

Need to check return value of fgets to avoid compiler warning on some
systems. Not really necessary here, though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotDiagnosticPlots.c

    r15404 r18846  
    123123
    124124    // pause until user types 'return'
    125     fprintf (stdout, "press return");
    126     fgets (line, 64, stdin);
     125    fprintf(stdout, "press return");
     126    if (!fgets(line, 64, stdin)) {
     127        // This is just to avoid a compiler warning on some systems; it's not really necessary
     128        psWarning("Couldn't read anything.");
     129    }
    127130
    128131    psFree (stats);
Note: See TracChangeset for help on using the changeset viewer.