~ecryptfs/ecryptfs/trunk

« back to all changes in this revision

Viewing changes to src/libecryptfs-swig/libecryptfs_wrap.c

  • Committer: Dustin Kirkland
  • Date: 2009-02-03 08:18:53 UTC
  • Revision ID: git-v1:b0090ac8d4f626339d7f8ca5681934d5e68dac3e
make most of the code compatible with -Werror

Thanks to Michal Hlavinka for the patch.  This has been on my
to-do list for a while now!

Patch retrieved from:
https://bugzilla.redhat.com/show_bug.cgi?id=479762

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
2590
2590
  arg2 = (char *)(buf2);
2591
2591
  result = ecryptfs_passphrase_blob(arg1,arg2);
2592
2592
  {
2593
 
    resultobj = PyString_FromStringAndSize((&result)->data,(&result)->size);
 
2593
    resultobj = PyString_FromStringAndSize((char *)(&result)->data,(&result)->size);
2594
2594
  }
2595
2595
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
2596
2596
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
2619
2619
  arg1 = (char *)(buf1);
2620
2620
  result = ecryptfs_passphrase_sig_from_blob(arg1);
2621
2621
  {
2622
 
    resultobj = PyString_FromStringAndSize((&result)->data,(&result)->size);
 
2622
    resultobj = PyString_FromStringAndSize((char *)(&result)->data,(&result)->size);
2623
2623
  }
2624
2624
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
2625
2625
  return resultobj;