]> git.sur5r.net Git - ngadmin/blobdiff - cli/common.c
Lib: moved lib include file to 'include' subdirectory.
[ngadmin] / cli / common.c
index 0911a1a12cf05d80ea1d63f52984867c1de43f57..4a5315c914aa879c395b0cc9157c137702cd29aa 100644 (file)
@@ -4,9 +4,6 @@
 
 
 
-
-
-
 void printErrCode (int err) {
  
  
@@ -14,10 +11,12 @@ 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;
   case ERR_TIMEOUT: printf("timeout\n"); break;
+  case ERR_NOTIMPL: printf("not implemented\n"); break;
   default: printf("unknown status code (%i)\n", err);
  }
  
@@ -54,6 +53,10 @@ const char* prio[]={
 };
 
 
+
+
+
+
 int parseBitrate (const char *s) {
  
  int i;