~ubuntu-branches/ubuntu/maverick/atlc/maverick

« back to all changes in this revision

Viewing changes to tools/src/mymd5sum.c

  • Committer: Bazaar Package Importer
  • Author(s): Bdale Garbee
  • Date: 2005-06-03 04:53:28 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050603045328-pohnuy5yryiv9s6o
Tags: 4.6.0-1
* new upstream version
* move make check from binary to build target so it doesn't run as root
* lose --with-threads from configure call, since it causes regression suite
  to fail many tests and upstream's README.threads is discouraging
* various tweaks to make lintian happier

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
 
1
/*
 
2
atlc - arbitrary transmission line calculator, for the analysis of
 
3
transmission lines are directional couplers. 
 
4
 
 
5
Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
 
6
 
 
7
This program is free software; you can redistribute it and/or
 
8
modify it under the terms of the GNU General Public License
 
9
as published by the Free Software Foundation; either package_version 2
 
10
of the License, or (at your option) any later package_version.
 
11
 
 
12
This program is distributed in the hope that it will be useful,
 
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
GNU General Public License for more details.
 
16
 
 
17
You should have received a copy of the GNU General Public License
 
18
along with this program; if not, write to the Free Software
 
19
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
 
20
USA.
 
21
 
 
22
Dr. David Kirkby, e-mail drkirkby@ntlworld.com 
 
23
 
 
24
*/
 
25
 
 
26
#include "config.h"
2
27
/*
3
28
 * RFC 1321 compliant MD5 implementation,
4
29
 * by Christophe Devine <devine@cr0.net>;
290
315
    }
291
316
    else
292
317
    {
293
 
        if( ! ( f = fopen( argv[1], "r" ) ) )
 
318
        if( ! ( f = fopen( argv[1], "rb" ) ) )
294
319
        {
295
320
  perror( "fopen" );
296
321
  return( 1 );