瀏覽代碼

Make LSUP_graph_uri return const.

scossu 2 周之前
父節點
當前提交
dedc1d2bea
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      include/graph.h
  2. 1 1
      src/graph.c

+ 1 - 1
include/graph.h

@@ -139,7 +139,7 @@ LSUP_graph_equals (const LSUP_Graph *gr1, const LSUP_Graph *gr2);
  *
  * To change the graph URI, use #LSUP_graph_set_uri.
  */
-LSUP_Term *
+const LSUP_Term *
 LSUP_graph_uri (const LSUP_Graph *gr);
 
 

+ 1 - 1
src/graph.c

@@ -201,7 +201,7 @@ LSUP_graph_free (LSUP_Graph *gr)
 }
 
 
-LSUP_Term *
+const LSUP_Term *
 LSUP_graph_uri (const LSUP_Graph *gr) { return gr->uri; }