From 3d6f1076e59c8a808e88a7d90dfe7f587faf1c22 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 6 Apr 2008 10:25:27 +0000 Subject: [PATCH] Fixed a cast warning with the mDNSResponder fix using the 4.2 compiler. M mdns.diff git-svn-id: http://svn.telesphoreo.org/trunk@196 514c082c-b64e-11dc-b46d-3d985efe055d --- cmdline/apt-cache.cc | 2 +- cmdline/apt-cache.cc.orig | 2 +- cmdline/apt-cdrom.cc | 2 +- cmdline/apt-cdrom.cc.orig | 2 +- cmdline/apt-config.cc | 2 +- cmdline/apt-config.cc.orig | 2 +- cmdline/apt-extracttemplates.cc | 2 +- cmdline/apt-extracttemplates.cc.orig | 2 +- cmdline/apt-get.cc | 2 +- cmdline/apt-get.cc.orig | 2 +- cmdline/apt-sortpkgs.cc | 2 +- cmdline/apt-sortpkgs.cc.orig | 2 +- ftparchive/apt-ftparchive.cc | 2 +- methods/cdrom.cc | 2 +- methods/copy.cc | 2 +- methods/file.cc | 2 +- methods/ftp.cc | 2 +- methods/gpgv.cc | 2 +- methods/gzip.cc | 2 +- methods/http.cc | 2 +- methods/rred.cc | 2 +- methods/rsh.cc | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index c6a5a86..37594e7 100644 --- a/cmdline/apt-cache.cc +++ b/cmdline/apt-cache.cc @@ -1712,7 +1712,7 @@ int main(int argc,const char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/cmdline/apt-cache.cc.orig b/cmdline/apt-cache.cc.orig index 13df621..d729170 100644 --- a/cmdline/apt-cache.cc.orig +++ b/cmdline/apt-cache.cc.orig @@ -1712,7 +1712,7 @@ int main(int argc,const char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc index 7d11585..8f4efea 100644 --- a/cmdline/apt-cdrom.cc +++ b/cmdline/apt-cdrom.cc @@ -173,7 +173,7 @@ int main(int argc,const char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/cmdline/apt-cdrom.cc.orig b/cmdline/apt-cdrom.cc.orig index 3ce0fd7..bba416b 100644 --- a/cmdline/apt-cdrom.cc.orig +++ b/cmdline/apt-cdrom.cc.orig @@ -173,7 +173,7 @@ int main(int argc,const char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/cmdline/apt-config.cc b/cmdline/apt-config.cc index faf1164..6241b30 100644 --- a/cmdline/apt-config.cc +++ b/cmdline/apt-config.cc @@ -97,7 +97,7 @@ int main(int argc,const char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/cmdline/apt-config.cc.orig b/cmdline/apt-config.cc.orig index 0805c8e..dab3952 100644 --- a/cmdline/apt-config.cc.orig +++ b/cmdline/apt-config.cc.orig @@ -97,7 +97,7 @@ int main(int argc,const char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/cmdline/apt-extracttemplates.cc b/cmdline/apt-extracttemplates.cc index 7002058..82729b2 100644 --- a/cmdline/apt-extracttemplates.cc +++ b/cmdline/apt-extracttemplates.cc @@ -357,7 +357,7 @@ int main(int argc, const char **argv) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/cmdline/apt-extracttemplates.cc.orig b/cmdline/apt-extracttemplates.cc.orig index 2edbfac..7aab823 100644 --- a/cmdline/apt-extracttemplates.cc.orig +++ b/cmdline/apt-extracttemplates.cc.orig @@ -357,7 +357,7 @@ int main(int argc, const char **argv) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 8b27886..6c11173 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -2510,7 +2510,7 @@ int main(int argc,const char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/cmdline/apt-get.cc.orig b/cmdline/apt-get.cc.orig index f623710..dc4bf67 100644 --- a/cmdline/apt-get.cc.orig +++ b/cmdline/apt-get.cc.orig @@ -2509,7 +2509,7 @@ int main(int argc,const char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/cmdline/apt-sortpkgs.cc b/cmdline/apt-sortpkgs.cc index 5424a9f..106f4bf 100644 --- a/cmdline/apt-sortpkgs.cc +++ b/cmdline/apt-sortpkgs.cc @@ -170,7 +170,7 @@ int main(unsigned int argc,const char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/cmdline/apt-sortpkgs.cc.orig b/cmdline/apt-sortpkgs.cc.orig index 4b3bba8..63bb0af 100644 --- a/cmdline/apt-sortpkgs.cc.orig +++ b/cmdline/apt-sortpkgs.cc.orig @@ -170,7 +170,7 @@ int main(unsigned int argc,const char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc index 6d5c29d..a5aaec7 100644 --- a/ftparchive/apt-ftparchive.cc +++ b/ftparchive/apt-ftparchive.cc @@ -907,7 +907,7 @@ int main(int argc, const char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/methods/cdrom.cc b/methods/cdrom.cc index 2d6da21..26e3b4b 100644 --- a/methods/cdrom.cc +++ b/methods/cdrom.cc @@ -199,7 +199,7 @@ int main() { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/methods/copy.cc b/methods/copy.cc index 3273853..d3799de 100644 --- a/methods/copy.cc +++ b/methods/copy.cc @@ -92,7 +92,7 @@ int main() { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/methods/file.cc b/methods/file.cc index 0c903cc..9b264c9 100644 --- a/methods/file.cc +++ b/methods/file.cc @@ -95,7 +95,7 @@ int main() { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/methods/ftp.cc b/methods/ftp.cc index 9e1333a..73697d1 100644 --- a/methods/ftp.cc +++ b/methods/ftp.cc @@ -1092,7 +1092,7 @@ int main(int argc,const char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/methods/gpgv.cc b/methods/gpgv.cc index b03d475..d0081ab 100644 --- a/methods/gpgv.cc +++ b/methods/gpgv.cc @@ -308,7 +308,7 @@ int main() { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/methods/gzip.cc b/methods/gzip.cc index 13a7302..0128266 100644 --- a/methods/gzip.cc +++ b/methods/gzip.cc @@ -168,7 +168,7 @@ int main(int argc, char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/methods/http.cc b/methods/http.cc index 4cea76a..b3cea13 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -1325,7 +1325,7 @@ int main() { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/methods/rred.cc b/methods/rred.cc index 3dd939b..e5fd0ea 100644 --- a/methods/rred.cc +++ b/methods/rred.cc @@ -259,7 +259,7 @@ int main(int argc, char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; diff --git a/methods/rsh.cc b/methods/rsh.cc index 3e5343c..1a7475a 100644 --- a/methods/rsh.cc +++ b/methods/rsh.cc @@ -517,7 +517,7 @@ int main(int argc, const char *argv[]) { struct nlist nl[2]; memset(nl, 0, sizeof(nl)); - nl[0].n_un.n_name = "_useMDNSResponder"; + nl[0].n_un.n_name = (char *) "_useMDNSResponder"; nlist("/usr/lib/libc.dylib", nl); if (nl[0].n_type != N_UNDF) *(int *) nl[0].n_value = 0; -- 2.45.2