From: Andre Date: Sat, 27 Jan 2007 15:09:35 +0000 (+0100) Subject: vss_status_tohuman(): change permission status flags X-Git-Tag: v0.2.15~70 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=db0d7536fd2edfd506acc36428ccf2a48fa246f2;p=paraslash.git vss_status_tohuman(): change permission status flags d (dbtool) -> a (audio file selector) a (audio file sender) -> v (virtual streaming system) --- diff --git a/command.c b/command.c index 77908bf0..8c791ae7 100644 --- a/command.c +++ b/command.c @@ -74,12 +74,12 @@ static char *vss_status_tohuman(unsigned int flags) */ char *cmd_perms_itohuman(unsigned int perms) { - char *msg = para_malloc(7 * sizeof(char)); + char *msg = para_malloc(5 * sizeof(char)); - msg[0] = perms & DB_READ? 'd' : '-'; - msg[1] = perms & DB_WRITE? 'D' : '-'; - msg[2] = perms & VSS_READ? 'a' : '-'; - msg[3] = perms & VSS_WRITE? 'A' : '-'; + msg[0] = perms & DB_READ? 'a' : '-'; + msg[1] = perms & DB_WRITE? 'A' : '-'; + msg[2] = perms & VSS_READ? 'v' : '-'; + msg[3] = perms & VSS_WRITE? 'V' : '-'; msg[4] = '\0'; return msg; }