6.4.2.20060411 under solaris

Christian Maeder maeder at tzi.de
Thu Apr 13 04:55:15 EDT 2006


Christian Maeder wrote:
> RtsUtils.p_o
> RtsUtils.c: In function 'time_str':
> RtsUtils.c:190: error: too few arguments to function 'ctime_r'

I could carry on after adding an argument ", 26"

C.

-- RtsUtils.c  2006-04-13 09:09:49.778999000 +0200
+++ RtsUtils.c~ 2006-01-12 13:43:03.000000000 +0100
@@ -185,11 +185,11 @@
      static char nowstr[26];

      if (now == 0) {
         time(&now);
  #if HAVE_CTIME_R
-       ctime_r(&now, nowstr, 26);
+       ctime_r(&now, nowstr);
  #else
         strcpy(nowstr, ctime(&now));
  #endif
         memmove(nowstr+16,nowstr+19,7);
         nowstr[21] = '\0';  // removes the \n


More information about the Glasgow-haskell-users mailing list