]> git.sur5r.net Git - ngadmin/blobdiff - cli/common.c
Added DENIED error.
[ngadmin] / cli / common.c
index dec8cc5a0388a0e6bca612c643648c535d95e871..4a5315c914aa879c395b0cc9157c137702cd29aa 100644 (file)
@@ -4,9 +4,6 @@
 
 
 
-
-
-
 void printErrCode (int err) {
  
  
@@ -14,6 +11,7 @@ void printErrCode (int err) {
   case ERR_OK: /*printf("ok\n");*/ break;
   case ERR_NET: printf("network error\n"); break;
   case ERR_NOTLOG: printf("no switch selected\n"); break;
+  case ERR_DENIED: printf("access denied\n"); break;
   case ERR_BADPASS: printf("wrong password\n"); break;
   case ERR_BADID: printf("bad switch id\n"); break;
   case ERR_INVARG: printf("invalid argument\n"); break;
@@ -55,6 +53,10 @@ const char* prio[]={
 };
 
 
+
+
+
+
 int parseBitrate (const char *s) {
  
  int i;