Changeset 20 in ntrip for trunk/ntripclient


Ignore:
Timestamp:
Apr 26, 2005, 10:14:38 AM (19 years ago)
Author:
stoecker
Message:

fixed warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripclient/NtripLinuxClient.c

    r19 r20  
    11/*
    22  Easy example NTRIP client for Linux/Unix.
    3   $Id: NtripLinuxClient.c,v 1.11 2005/04/19 11:28:10 stoecker Exp $
     3  $Id: NtripLinuxClient.c,v 1.12 2005/04/25 16:05:57 stoecker Exp $
    44  Copyright (C) 2003-2005 by Dirk Stoecker <soft@dstoecker.de>
    55   
     
    3737
    3838/* CVS revision and version */
    39 static char revisionstr[] = "$Revision: 1.11 $";
    40 static char datestr[]     = "$Date: 2005/04/19 11:28:10 $";
     39static char revisionstr[] = "$Revision: 1.12 $";
     40static char datestr[]     = "$Date: 2005/04/25 16:05:57 $";
    4141
    4242struct Args
     
    248248      i += 5;
    249249    }
    250     if(send(sockfd, buf, i, 0) != i)
     250    if(send(sockfd, buf, (size_t)i, 0) != i)
    251251    {
    252252      perror("send");
     
    274274        else
    275275        {
    276           fwrite(buf, numbytes, 1, stdout);
     276          fwrite(buf, (size_t)numbytes, 1, stdout);
    277277          fflush(stdout);
    278278        }
     
    283283      while((numbytes=recv(sockfd, buf, MAXDATASIZE-1, 0)) > 0)
    284284      {
    285         fwrite(buf, numbytes, 1, stdout);
     285        fwrite(buf, (size_t)numbytes, 1, stdout);
    286286      }
    287287    }
Note: See TracChangeset for help on using the changeset viewer.