]> err.no Git - sope/blobdiff - sope-mime/NGImap4/NGImap4Connection.m
fixed some gcc 4.0 warning
[sope] / sope-mime / NGImap4 / NGImap4Connection.m
index f7a96d8a4f71acabb74ba15feba4d03d872da57a..5fb802e73e609ff4c02d24e5447817dfb95b7058 100644 (file)
@@ -540,19 +540,19 @@ NSArray *SOGoMailGetDirectChildren(NSArray *_array, NSString *_fn) {
   
   /* process results */
   
-  result = [result objectForKey:@"fetch"];
+  result = [(NSDictionary *)result objectForKey:@"fetch"];
   if ([result count] == 0) { /* did not find part */
     [self errorWithFormat:@"did not find part: %@", _partId];
     return nil;
   }
   
   fetch = [result objectAtIndex:0];
-  if ((body = [fetch objectForKey:@"body"]) == nil) {
+  if ((body = [(NSDictionary *)fetch objectForKey:@"body"]) == nil) {
     [self errorWithFormat:@"did not find body in response: %@", result];
     return nil;
   }
   
-  if ((result = [body objectForKey:@"data"]) == nil) {
+  if ((result = [(NSDictionary *)body objectForKey:@"data"]) == nil) {
     [self errorWithFormat:@"did not find data in body: %@", fetch];
     return nil;
   }
@@ -725,14 +725,14 @@ NSArray *SOGoMailGetDirectChildren(NSArray *_array, NSString *_fn) {
   if ((result = [self cachedHierarchyResults]) != nil) {
     NSString *p;
     
-    result = [result objectForKey:@"list"];
+    result = [(NSDictionary *)result objectForKey:@"list"];
     p      = [_url path];
 #if __APPLE__ 
     /* normalized results already have the / in front on libFoundation?! */
     if ([p hasPrefix:@"/"]) 
       p = [p substringFromIndex:1];
 #endif
-    return ([result objectForKey:p] != nil) ? YES : NO;
+    return ([(NSDictionary *)result objectForKey:p] != nil) ? YES : NO;
   }
   
   /* check using IMAP4 select */