Changeset 14166


Ignore:
Timestamp:
Aug 17, 2013, 5:03:15 PM (8 years ago)
Author:
jordan
Message:

silence a small handful of minor gcc compiler warnings in libtransmission

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/libtransmission-test.c

    r14077 r14166  
    344344  for (i=0; i<tor->info.fileCount; ++i)
    345345    {
    346       int rv;
     346      int err;
    347347      uint64_t j;
    348348      FILE * fp;
     
    368368      path = tr_torrentFindFile (tor, i);
    369369      assert (path != NULL);
    370       rv = stat (path, &sb);
    371       assert (rv == 0);
     370      err = errno;
     371      errno = 0;
     372      stat (path, &sb);
     373      assert (errno == 0);
     374      errno = err;
    372375      tr_free (path);
    373376    }
  • trunk/libtransmission/rename-test.c

    r14165 r14166  
    8787create_file_with_contents (const char * path, const char * str)
    8888{
    89   int rv;
    9089  FILE * fp;
    9190  char * dir;
  • trunk/libtransmission/trevent.c

    r14165 r14166  
    266266    eh = tr_new0 (tr_event_handle, 1);
    267267    eh->lock = tr_lockNew ();
    268     pipe (eh->fds);
     268    if (pipe (eh->fds) == -1)
     269      tr_logAddError ("Unable to write to pipe() in libtransmission: %s", tr_strerror(errno));
    269270    eh->session = session;
    270271    eh->thread = tr_threadNew (libeventThreadFunc, eh);
Note: See TracChangeset for help on using the changeset viewer.