Re: Digest Number 1280

nishant kumar <[email protected]>
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
Hi 
Yes, got the programm running...was a typo, couldnt
figure out.

Cant catch returns of function if it returns void.

thanks for help
Nish


--- [email protected] wrote:


---------------------------------
  XML-RPC Discussion            XML-RPC Discussion    
 
       Messages In This Digest      (2              
Messages)                                             
           
1a.  
      can anybody tell me the reason ??  From:      
coolnishant83                        
1b.  
      Re: can anybody tell me the reason ??  From:    
  Aleksandar Janicijevic                              
               View All Topics | Create New Topic     
  
              Messages                            
1a.   
                       can anybody tell me the reason
??              Posted by:      "coolnishant83"       
    [email protected]                         
             coolnishant83                            
Thu Jul 27, 2006 5:35 am        (PST)                 
  Whats the reason ???
I am calling another client with asynch call as
follows:->
               
HA_result=xmlrpc_client_call_asynch(HA_URL,"server.
logoutbb",callback,NULL,"(i6s)",(xmlrpc_int32)
iSaveSettings,(char *) 
username,(size_t *) ulen,(char *) HA_activesessionid);

where callback is defined as:->

static void callback (char *server_url,char
*method_name,xmlrpc_value 
*param_array,void *user_data,xmlrpc_env
*env,xmlrpc_value *result)
{
    printf("\nHI IAM CALLBACK FUCNTION OF ASYNCH
LOGOUT CALL\n");
}

but compilation gives following error :->
bb_xmlserver1.c:10625: warning: passing arg 4 of 
`xmlrpc_client_call_asynch' makes pointer from integer
without a cast
bb_xmlserver1.c:10625: void value not ignored as it
ought to be

can anybody tell me what could possibly be done??

Nish

          
                             Back to top              
                                     Reply to sender  
        |                      Reply to group         
 |                      Reply via web post           
                      Messages in this topic          
 (2)                  
             
1b.   
                       Re: can anybody tell me the
reason ??              Posted by:      "Aleksandar
Janicijevic"            [email protected]            
                          ajanicij                    
        Thu Jul 27, 2006 7:26 am        (PST)         
          I think the best idea would be to program
some more in C, then
eventually it will all come. But short term, here's my
advice:

>                
HA_result=xmlrpc_client_call_asynch(HA_URL,"server.
> logoutbb",callback,NULL,"(i6s)",(xmlrpc_int32)
iSaveSettings,(char *)
> 
> ...
> 
> but compilation gives following error :->
> bb_xmlserver1.c:10625: warning: passing arg 4 of 
> `xmlrpc_client_call_asynch' makes pointer from
integer without a cast
> bb_xmlserver1.c:10625: void value not ignored as it
ought to be
> 

Is xmlrpc_client_call_asynch defined as a void
function? That is,

extern void
xmlrpc_client_call_asynch (char *server_url,
               char *method_name,
               xmlrpc_response_handler callback,
               void *user_data,
               char *args_format,
               ...);

If yes, then you can't take result from this function
and put it into
HA_result. Doesn't work.

The warning is harmless, but you can get rid of it by
setting the
fourth parameter to (void*) NULL.

Regards,

Aleksandar

          
                             Back to top              
                                     Reply to sender  
        |                      Reply to group         
 |                      Reply via web post           
                      Messages in this topic          
 (2)                  
               
 
                                         Recent
Activity
                        
              4    
    New Members
                                                      
                   
                    Visit Your Group          
  	                                            New
Message Search
          
Find the message you want faster. Visit your group to
try out the improved message search.
          

        
                        
          

          
Share feedback on the new changes to Groups
        
          
                                      Need to Reply?
              
Click one of the "Reply" links to respond to a
specific message in the Daily Digest.
          
       
      
             Create New Topic     |          Visit
Your Group on the Web       
            Messages                    |    Links    
   |    Database        |    Polls              |   
Calendar    
        
                 
    You are receiving a Daily Digest          Change
Delivery Settings     
          Visit Your Group     |          Yahoo!
Groups Terms of Use     |          Unsubscribe      
   
 



		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.