From: zacheiss Date: Fri, 27 Jul 2001 08:18:10 +0000 (+0000) Subject: Don't need to cast the "isrecursive" argument; use atoi() instead. X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/faf44ced9c2b363988dac5e315a7774673b51366 Don't need to cast the "isrecursive" argument; use atoi() instead. --- diff --git a/server/qsupport.pc b/server/qsupport.pc index aa041cae..5dd8b454 100644 --- a/server/qsupport.pc +++ b/server/qsupport.pc @@ -1976,7 +1976,7 @@ int get_machines_of_container(struct query *q, char *argv[], client *cl, rargv[1] = containername; cnt_id = *(int *)argv[0]; - isrecursive = *(int *)argv[1]; + isrecursive = atoi(argv[1]); /* get the container name */ @@ -2037,7 +2037,7 @@ int get_subcontainers_of_container(struct query *q, char *argv[], client *cl, rargv[0] = subcontainername; cnt_id = *(int *)argv[0]; - isrecursive = *(int *)argv[1]; + isrecursive = atoi(argv[1]); /* get the container name */