static void slirp_smb_cleanup(SlirpState *s)

{

    char cmd[128];

    int ret;



    if (s->smb_dir[0] != '\0') {

        snprintf(cmd, sizeof(cmd), "rm -rf %s", s->smb_dir);

        ret = system(cmd);

        if (!WIFEXITED(ret)) {

            qemu_error("'%s' failed.\n", cmd);

        } else if (WEXITSTATUS(ret)) {

            qemu_error("'%s' failed. Error code: %d\n",

                    cmd, WEXITSTATUS(ret));

        }

        s->smb_dir[0] = '\0';

    }

}

static void slirp_smb_cleanup(SlirpState *s)

{

    char cmd[128];

    int ret;



    if (s->smb_dir[0] != '\0') {

        snprintf(cmd, sizeof(cmd), "rm -rf %s", s->smb_dir);

        ret = system(cmd);

        if (!WIFEXITED(ret)) {

            qemu_error("'%s' failed.\n", cmd);

        } else if (WEXITSTATUS(ret)) {

            qemu_error("'%s' failed. Error code: %d\n",

                    cmd, WEXITSTATUS(ret));

        }

        s->smb_dir[0] = '\0';

    }

}

static void FUNC_0(SlirpState *VAR_0)

{

    char VAR_1[128];

    int VAR_2;



    if (VAR_0->smb_dir[0] != '\0') {

        snprintf(VAR_1, sizeof(VAR_1), "rm -rf %VAR_0", VAR_0->smb_dir);

        VAR_2 = system(VAR_1);

        if (!WIFEXITED(VAR_2)) {

            qemu_error("'%VAR_0' failed.\n", VAR_1);

        } else if (WEXITSTATUS(VAR_2)) {

            qemu_error("'%VAR_0' failed. Error code: %d\n",

                    VAR_1, WEXITSTATUS(VAR_2));

        }

        VAR_0->smb_dir[0] = '\0';

    }

}

static void FUNC_0(SlirpState *VAR_0)
{ char VAR_1[128]; int VAR_2; if (VAR_0->smb_dir[0] != '\0') { snprintf(VAR_1, sizeof(VAR_1), "rm -rf %VAR_0", VAR_0->smb_dir); VAR_2 = system(VAR_1); if (!WIFEXITED(VAR_2)) { qemu_error("'%VAR_0' failed.\n", VAR_1); } else if (WEXITSTATUS(VAR_2)) { qemu_error("'%VAR_0' failed. Error code: %d\n",
VAR_1, WEXITSTATUS(VAR_2)); } VAR_0->smb_dir[0] = '\0'; } }