Merge branch 'mirbsd'
[alioth/cvs.git] / src / main.c
index e5c3cdd..0278ef3 100644 (file)
@@ -746,7 +746,8 @@ distribution kit for a complete list of contributors and copyrights.\n",
 
     global_session_id = Xasprintf("1%010llX%04X%04X",
       (unsigned long long)time(NULL),
 
     global_session_id = Xasprintf("1%010llX%04X%04X",
       (unsigned long long)time(NULL),
-      (int)(getpid() & 0xFFFF), (int)(arc4random() & 0xFFFF));
+      (unsigned int)(getpid() & 0xFFFF),
+      (unsigned int)(arc4random() & 0xFFFF));
 
     TRACE (TRACE_FUNCTION, "main: Session ID is %s", global_session_id);
 
 
     TRACE (TRACE_FUNCTION, "main: Session ID is %s", global_session_id);
 
@@ -1255,6 +1256,7 @@ void
 date_to_tm (struct tm *dest, const char *source)
 {
     int y;
 date_to_tm (struct tm *dest, const char *source)
 {
     int y;
+
     if (sscanf (source, SDATEFORM,
                &y, &dest->tm_mon, &dest->tm_mday,
                &dest->tm_hour, &dest->tm_min, &dest->tm_sec)
     if (sscanf (source, SDATEFORM,
                &y, &dest->tm_mon, &dest->tm_mday,
                &dest->tm_hour, &dest->tm_min, &dest->tm_sec)