Explorar o código

Fixed warning.

default %!s(int64=3) %!d(string=hai) anos
pai
achega
043cd5c50b
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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 */
 /* we're not following this actor any longer */
 {
 {
     xs *fn = _following_fn(snac, actor);
     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);
 d_char *local_list(snac *snac, int max);
 
 
 int following_add(snac *snac, const char *actor, const xs_dict *msg);
 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_check(snac *snac, const char *actor);
 int following_get(snac *snac, const char *actor, d_char **data);
 int following_get(snac *snac, const char *actor, d_char **data);
 d_char *following_list(snac *snac);
 d_char *following_list(snac *snac);