$ git clone https://socialnetwork.ion.nu/socialnetwork.git
commit eb58b80771adbc8bd26c874d8f721b9bf26f8066
Author: Alicia <...>
Date:   Tue Jan 17 14:55:54 2017 +0100

    Added 'const' to some things that didn't need to be writable.

diff --git a/social.c b/social.c
index 2671895..70e3e18 100644
--- a/social.c
+++ b/social.c
@@ -204,7 +204,7 @@ void social_findfriends(void) // Call a second or so after init (once we have so
   }
 }
 
-void social_user_addtocircle(struct user* user, uint32_t circle, unsigned char id[20])
+void social_user_addtocircle(struct user* user, uint32_t circle, const unsigned char id[20])
 {
   if(circle>=user->circlecount)
   {
@@ -224,7 +224,7 @@ void social_user_addtocircle(struct user* user, uint32_t circle, unsigned char i
   c->friends[c->count-1]=friend;
 }
 
-void social_addfriend(unsigned char id[20], uint32_t circle)
+void social_addfriend(const unsigned char id[20], uint32_t circle)
 {
   struct user* friend=social_finduser(id);
   if(!friend){friend=user_new(id);}
@@ -287,7 +287,7 @@ void social_updatefield(const char* name, const char* value)
   social_shareupdate(post);
 }
 
-struct user* social_finduser(unsigned char id[20])
+struct user* social_finduser(const unsigned char id[20])
 {
   unsigned int i;
   for(i=0; i<social_usercount; ++i)
diff --git a/social.h b/social.h
index 91fcd0b..24dafcb 100644
--- a/social.h
+++ b/social.h
@@ -52,10 +52,10 @@ extern struct user** social_users;
 extern unsigned int social_usercount;
 extern struct user* social_self; // Most things we need to keep track of for ourself are the same things we need to keep track of for others
 extern void social_init(const char* keypath);
-extern void social_user_addtocircle(struct user* user, uint32_t circle, unsigned char id[20]);
-extern void social_addfriend(unsigned char id[20], uint32_t circle);
+extern void social_user_addtocircle(struct user* user, uint32_t circle, const unsigned char id[20]);
+extern void social_addfriend(const unsigned char id[20], uint32_t circle);
 extern void social_createpost(const char* msg);
 extern void social_updatefield(const char* name, const char* value);
-extern struct user* social_finduser(unsigned char id[20]);
+extern struct user* social_finduser(const unsigned char id[20]);
 extern void social_shareupdate(struct update* update);
 #endif