Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4685488

io_util_md.c needs a prototype for strlen() on linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.2
    • 1.4.1
    • core-libs
    • mantis
    • itanium
    • linux
    • Verified

      src/solaris/native/java/io/io_util_md.c needs to include <string.h> on linux
      to get a valid function prototype for strlen on ia64.
      strlen returns a 64 bit value, but the calling routine
      is expecting 32 bit.

      As it happens, this does not cause a problem in this case because
      the lower half of the 64 bit return value is interpreted correctly
      as a 32 bit value. But it is a compile warning that should be cleaned up.

            mmcclosksunw Michael Mccloskey (Inactive)
            michaelm Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: