소스 검색

Fixed warning.

default 3 년 전
부모
커밋
043cd5c50b
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      data.c
  2. 1 1
      snac.h

+ 1 - 1
data.c

@@ -1103,7 +1103,7 @@ int following_add(snac *snac, const char *actor, const xs_dict *msg)
 }
 
 
-int following_del(snac *snac, char *actor)
+int following_del(snac *snac, const char *actor)
 /* we're not following this actor any longer */
 {
     xs *fn = _following_fn(snac, actor);

+ 1 - 1
snac.h

@@ -113,7 +113,7 @@ xs_list *timeline_top_level(snac *snac, xs_list *list);
 d_char *local_list(snac *snac, int max);
 
 int following_add(snac *snac, const char *actor, const xs_dict *msg);
-int following_del(snac *snac, char *actor);
+int following_del(snac *snac, const char *actor);
 int following_check(snac *snac, const char *actor);
 int following_get(snac *snac, const char *actor, d_char **data);
 d_char *following_list(snac *snac);