diff options
author | Jay Freeman <saurik@saurik.com> | 2008-04-06 10:25:27 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-04-06 10:25:27 +0000 |
commit | fa14d4f1f78fb477de01552a1d76d1a1b3489b73 (patch) | |
tree | 75a1c968c8589ff6b0aa5e0c6961712c772d9145 /data/apt/mdns.diff | |
parent | 6a504236d38b5c41fd7b2b0811a3a77fdcd9281f (diff) |
Fixed a cast warning with the mDNSResponder fix using the 4.2 compiler.
git-svn-id: http://svn.telesphoreo.org/trunk@196 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/apt/mdns.diff')
-rw-r--r-- | data/apt/mdns.diff | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/data/apt/mdns.diff b/data/apt/mdns.diff index 7efb1ac3b..20c349ad2 100644 --- a/data/apt/mdns.diff +++ b/data/apt/mdns.diff @@ -15,7 +15,7 @@ diff -ru apt-0.6.46.4.1/cmdline/apt-cache.cc apt-0.6.46.4.1+iPhone/cmdline/apt-c { + 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; @@ -40,7 +40,7 @@ diff -ru apt-0.6.46.4.1/cmdline/apt-cdrom.cc apt-0.6.46.4.1+iPhone/cmdline/apt-c { + 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; @@ -65,7 +65,7 @@ diff -ru apt-0.6.46.4.1/cmdline/apt-config.cc apt-0.6.46.4.1+iPhone/cmdline/apt- { + 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; @@ -90,7 +90,7 @@ diff -ru apt-0.6.46.4.1/cmdline/apt-extracttemplates.cc apt-0.6.46.4.1+iPhone/cm { + 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; @@ -115,7 +115,7 @@ diff -ru apt-0.6.46.4.1/cmdline/apt-get.cc apt-0.6.46.4.1+iPhone/cmdline/apt-get { + 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; @@ -140,7 +140,7 @@ diff -ru apt-0.6.46.4.1/cmdline/apt-sortpkgs.cc apt-0.6.46.4.1+iPhone/cmdline/ap { + 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; @@ -165,7 +165,7 @@ diff -ru apt-0.6.46.4.1/ftparchive/apt-ftparchive.cc apt-0.6.46.4.1+iPhone/ftpar { + 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; @@ -190,7 +190,7 @@ diff -ru apt-0.6.46.4.1/methods/cdrom.cc apt-0.6.46.4.1+iPhone/methods/cdrom.cc { + 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; @@ -215,7 +215,7 @@ diff -ru apt-0.6.46.4.1/methods/copy.cc apt-0.6.46.4.1+iPhone/methods/copy.cc { + 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; @@ -240,7 +240,7 @@ diff -ru apt-0.6.46.4.1/methods/file.cc apt-0.6.46.4.1+iPhone/methods/file.cc { + 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; @@ -265,7 +265,7 @@ diff -ru apt-0.6.46.4.1/methods/ftp.cc apt-0.6.46.4.1+iPhone/methods/ftp.cc { + 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; @@ -290,7 +290,7 @@ diff -ru apt-0.6.46.4.1/methods/gpgv.cc apt-0.6.46.4.1+iPhone/methods/gpgv.cc { + 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; @@ -315,7 +315,7 @@ diff -ru apt-0.6.46.4.1/methods/gzip.cc apt-0.6.46.4.1+iPhone/methods/gzip.cc { + 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; @@ -340,7 +340,7 @@ diff -ru apt-0.6.46.4.1/methods/http.cc apt-0.6.46.4.1+iPhone/methods/http.cc { + 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; @@ -365,7 +365,7 @@ diff -ru apt-0.6.46.4.1/methods/rred.cc apt-0.6.46.4.1+iPhone/methods/rred.cc { + 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; @@ -390,7 +390,7 @@ diff -ru apt-0.6.46.4.1/methods/rsh.cc apt-0.6.46.4.1+iPhone/methods/rsh.cc { + 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; |