X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libiberty%2Flrealpath.c;h=b27c8de990e974c7294dfc4024ef44fbd3844a52;hb=81540bae22fbff1c51ccdb4952b0c7d1ab144c2c;hp=4877753cd66fb7bfa99775c4c3d130c478768221;hpb=c295e612e9fe12d597278539b6e7b7080df93787;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libiberty/lrealpath.c b/libiberty/lrealpath.c index 4877753cd66..b27c8de990e 100644 --- a/libiberty/lrealpath.c +++ b/libiberty/lrealpath.c @@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street - Fifth Floor, + Boston, MA 02110-1301, USA. */ /* @@ -73,8 +73,7 @@ extern char *canonicalize_file_name (const char *); #endif char * -lrealpath (filename) - const char *filename; +lrealpath (const char *filename) { /* Method 1: The system has a compile time upper bound on a filename path. Use that and realpath() to canonicalize the name. This is @@ -118,7 +117,7 @@ lrealpath (filename) { /* PATH_MAX is bounded. */ char *buf, *rp, *ret; - buf = malloc (path_max); + buf = (char *) malloc (path_max); if (buf == NULL) return NULL; rp = realpath (filename, buf);