X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fmsg-locator.c;h=fb8082e9217f6d7d4614b35e9a347761e8ad356a;hb=b3b8cd820da3100f7ad474a5ab88e2737da18d1b;hp=3e915382739515a6980b2d8611f7fc58cd8ae438;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp diff --git a/src/libpspp/msg-locator.c b/src/libpspp/msg-locator.c index 3e91538273..fb8082e921 100644 --- a/src/libpspp/msg-locator.c +++ b/src/libpspp/msg-locator.c @@ -16,12 +16,14 @@ #include #include -#include #include "msg-locator.h" -#include #include +#include +#include #include "getl.h" +#include "xalloc.h" + /* File locator stack. */ static const struct msg_locator **file_loc; @@ -76,7 +78,7 @@ get_msg_location (const struct source_stream *ss, struct msg_locator *loc) } else { - loc->file_name = getl_source_name (ss); + loc->file_name = CONST_CAST (char *, getl_source_name (ss)); loc->line_number = getl_source_location (ss); } }