X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fmsg-locator.c;h=fb8082e9217f6d7d4614b35e9a347761e8ad356a;hb=d53d2523fad833f485e0f32e64e094fb5919b703;hp=09550e29ac9c802def722eb8269d50efb9ab726d;hpb=9f087e7aa4cdff1d5d46d5e188c0017a9d2d0029;p=pspp-builds.git diff --git a/src/libpspp/msg-locator.c b/src/libpspp/msg-locator.c index 09550e29..fb8082e9 100644 --- a/src/libpspp/msg-locator.c +++ b/src/libpspp/msg-locator.c @@ -17,8 +17,9 @@ #include #include #include "msg-locator.h" -#include #include +#include +#include #include "getl.h" #include "xalloc.h" @@ -77,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); } }