Re: [PATCH] http admin commands + userguide
Alejandro Guerrieri <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Fixed the warnings on CVS in the meantime. BTW, there's a lot of these at least on Mac OSX: gwlib/octstr.c: In function ‘urlcode_init’: gwlib/octstr.c:209: warning: pointer targets in initialization differ in signedness gwlib/octstr.c: In function ‘octstr_imm’: gwlib/octstr.c:309: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness gwlib/octstr.c: In function ‘octstr_copy_real’: gwlib/octstr.c:364: warning: pointer targets in passing argument 1 of ‘octstr_create_from_data_real’ differ in signedness gwlib/octstr.c: In function ‘octstr_duplicate_real’: gwlib/octstr.c:376: warning: pointer targets in passing argument 1 of ‘octstr_create_from_data_real’ differ in signedness gwlib/octstr.c: In function ‘octstr_get_cstr_real’: Not only on octstr.c but on other files as well. Is this a Mac-only problem? Any hints on how could I fix it? Those showed up even without the --enable-warnings switch. Regards, -- Alejandro Guerrieri [email protected] On 08/07/2009, at 17:40, Alexander Malysh wrote: > Hi Alex, > > sorry I have not seen this before: > gw/bb_smscconn.c: In function ‘smsc2_remove_smsc’: > gw/bb_smscconn.c:839: warning: unused variable ‘smscid’ > gw/bb_smscconn.c: In function ‘smsc2_add_smsc’: > gw/bb_smscconn.c:870: warning: unused variable ‘smsc_type’ > > Please fix these warnings. Could you please test compile at your > devel host with > ./configure --enable-warnings ... > then you will see these :) > > And I think that now, with config reload, smsc2_restart_smsc > function don't work as expected. > There is example: > > group = smsc > smsc-id = A > > group = smsc > smsc-id = A > > group = smsc > smsc-id = A > > -> start bearerbox > > -> reconfigure > > group = smsc > smsc-id = A > > -> restart_smsc(A) > > first found smsc-id = A will be restarted but the second will not > found in the config > and error will be logged, leaving the second and third instances. > This is not a expected behavior. > I would expect that all 3 instances will be shutdown and only one > will be running after restarting. > > I propose to change it in following sequence: > - get lock > - shutdown all instances with this id > - start all found instances from new config > - release lock > > Thanks, > Alex > > Am 08.07.2009 um 16:30 schrieb Alejandro Guerrieri: > >> Commited to CVS. >> >> Regards, >> -- >> Alejandro Guerrieri >> [email protected] >> >> >> >> On 08/07/2009, at 15:12, Alexander Malysh wrote: >> >>> no objections from me... >>> >>> Thanks, >>> Alex >>> >>> Am 08.07.2009 um 14:52 schrieb Alejandro Guerrieri: >>> >>>> Here's the patch with the userguide part. >>>> >>>> If no objections, I'll commit it later. >>>> >>>> Regards, >>>> -- >>>> Alejandro Guerrieri >>>> [email protected] >>>> >>>> >>>> <kannel-http-admin-ug.patch> >>>> >>> >> >