fixes todo: use scstr instead of sstr

Sun, 24 Feb 2019 14:55:59 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 24 Feb 2019 14:55:59 +0100
changeset 508
4575da18a27d
parent 507
dea7d1b4eea0
child 509
0576dd6409f3

fixes todo: use scstr instead of sstr

dav/main.c file | annotate | diff | comparison | revisions
--- a/dav/main.c	Sun Feb 24 14:49:58 2019 +0100
+++ b/dav/main.c	Sun Feb 24 14:55:59 2019 +0100
@@ -229,14 +229,13 @@
 };
 
 char* find_usage_str(const char *cmd) {
-    // TODO: use scstr_t after UCX update
-    sstr_t c = sstr((char*)cmd);
+    scstr_t c = scstr(cmd);
     for(int i=0;;i++) {
         char *str = cmdusageinfo[i];
         if(!str) {
             break;
         }
-        sstr_t u = sstr(str);
+        scstr_t u = scstr(str);
         if(sstrprefix(u, c)) {
             return str;
         }

mercurial