LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libopensync-fixed-unused-variables.diff of Package libopensync (Project mobile:synchronization:FACTORY)

Index: libopensync-0.22/tools/osynctest.c
===================================================================
--- libopensync-0.22.orig/tools/osynctest.c
+++ libopensync-0.22/tools/osynctest.c
@@ -81,8 +81,7 @@ double writetime;
 double _second()     /* note that some compilers like AIX xlf do not require the trailing  '_' */
 {
     struct timeval tp;
-    int rtn;
-    rtn=gettimeofday(&tp, NULL);
+    gettimeofday(&tp, NULL);
 
     return ((double)tp.tv_sec+(1.e-6)*tp.tv_usec);
 }