]> granicus.if.org Git - sudo/commitdiff
Rename variables now that the string list functions are not ldap-specific.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Thu, 3 May 2018 16:49:54 +0000 (10:49 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Thu, 3 May 2018 16:49:54 +0000 (10:49 -0600)
plugins/sudoers/cvtsudoers.c

index 0b9ec4e26317c8fde37b8355923351ccbe726e71..65b3cb513e0de0c2b9b6713d3ad9b7348dd5a9ec 100644 (file)
@@ -585,25 +585,25 @@ cvtsudoers_parse_filter(char *expression)
 struct cvtsudoers_string *
 cvtsudoers_string_alloc(const char *s)
 {
-    struct cvtsudoers_string *ls;
+    struct cvtsudoers_string *cs;
     debug_decl(cvtsudoers_string_alloc, SUDOERS_DEBUG_UTIL)
 
-    if ((ls = malloc(sizeof(*ls))) != NULL) {
-       if ((ls->str = strdup(s)) == NULL) {
-           free(ls);
-           ls = NULL;
+    if ((cs = malloc(sizeof(*cs))) != NULL) {
+       if ((cs->str = strdup(s)) == NULL) {
+           free(cs);
+           cs = NULL;
        }
     }
 
-    debug_return_ptr(ls);
+    debug_return_ptr(cs);
 }
 
 void
-cvtsudoers_string_free(struct cvtsudoers_string *ls)
+cvtsudoers_string_free(struct cvtsudoers_string *cs)
 {
-    if (ls != NULL) {
-       free(ls->str);
-       free(ls);
+    if (cs != NULL) {
+       free(cs->str);
+       free(cs);
     }
 }