Your message dated Wed, 3 May 2006 03:09:46 +0400
with message-id <[EMAIL PROTECTED]>
and subject line 0.9.3.99svn20060428-2 compiles, closing
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: sim
Severity: normal
Tags: patch

When building 'sim' on amd64 with gcc-4.0,
I get the following error:

if /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H 
-I. -I. -I../.. -I/usr/include/kde -I/usr/share/qt3/include 
-I/usr/share/qt3/include -I.    -DPIC -fPIC -DQT_THREAD_SUPPORT  -DPIC -fPIC 
-DQT_THREAD_SUPPORT  -D_REENTRANT   -I/usr/include/libxml2 
-I/usr/include/libxml2  -O2 -fno-exceptions -fno-check-new  -MT cfg.lo -MD -MP 
-MF ".deps/cfg.Tpo" \
          -c -o cfg.lo `test -f 'cfg.cpp' || echo './'`cfg.cpp; \
        then mv -f ".deps/cfg.Tpo" ".deps/cfg.Plo"; \
        else rm -f ".deps/cfg.Tpo"; exit 1; \
        fi
cfg.cpp: In function 'void SIM::init_data(const SIM::DataDef*, SIM::Data*)':
cfg.cpp:570: error: cast from 'const char*' to 'unsigned int' loses precision
make[4]: *** [cfg.lo] Error 1
make[4]: Leaving directory `/sim-0.9.3/sim/api'

With the attached patch 'sim' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/sim-0.9.3/plugins/_core/commands.cpp 
./plugins/_core/commands.cpp
--- ../tmp-orig/sim-0.9.3/plugins/_core/commands.cpp    2003-09-01 
02:01:00.000000000 +0200
+++ ./plugins/_core/commands.cpp        2005-03-22 16:27:48.000000000 +0100
@@ -188,27 +188,27 @@
         clear();
         break;
     case EventToolbarCreate:
-        return (void*)createBar((unsigned)(e->param()));
+        return (void*)createBar((unsigned long)(e->param()));
     case EventToolbarRemove:
-        removeBar((unsigned)(e->param()));
+        removeBar((unsigned long)(e->param()));
         break;
     case EventShowBar:
         b = (BarShow*)(e->param());
         return show(b->bar_id, b->parent);
     case EventMenuCreate:
-        return (void*)createMenu((unsigned)(e->param()));
+        return (void*)createMenu((unsigned long)(e->param()));
     case EventMenuRemove:
-        removeMenu((unsigned)(e->param()));
+        removeMenu((unsigned long)(e->param()));
         break;
     case EventGetMenu:
         return (void*)get((CommandDef*)(e->param()));
     case EventGetMenuDef:
-        return (void*)getDef((unsigned)(e->param()));
+        return (void*)getDef((unsigned long)(e->param()));
     case EventProcessMenu:
         mp = (ProcessMenuParam*)(e->param());
         return (void*)processMenu(mp->id, mp->param, mp->key);
     case EventMenuCustomize:
-        customizeMenu((unsigned)(e->param()));
+        customizeMenu((unsigned long)(e->param()));
         break;
     default:
         break;
diff -urN ../tmp-orig/sim-0.9.3/plugins/_core/container.cpp 
./plugins/_core/container.cpp
--- ../tmp-orig/sim-0.9.3/plugins/_core/container.cpp   2004-03-30 
01:42:24.000000000 +0200
+++ ./plugins/_core/container.cpp       2005-03-22 16:38:37.000000000 +0100
@@ -680,7 +680,7 @@
     case EventCommandExec:
         cmd = (CommandDef*)(e->param());
         userWnd = m_tabBar->currentWnd();
-        if (userWnd && ((unsigned)(cmd->param) == userWnd->id())){
+        if (userWnd && ((unsigned long)(cmd->param) == userWnd->id())){
             if (cmd->menu_id == MenuContainerContact){
                 m_tabBar->raiseTab(cmd->id);
                 return e->param();
@@ -702,7 +702,7 @@
     case EventCheckState:
         cmd = (CommandDef*)(e->param());
         userWnd = m_tabBar->currentWnd();
-        if (userWnd && ((unsigned)(cmd->param) == userWnd->id()) &&
+        if (userWnd && ((unsigned long)(cmd->param) == userWnd->id()) &&
                 (cmd->menu_id == MenuContainerContact) &&
                 (cmd->id == CmdContainerContacts)){
             list<UserWnd*> userWnds = m_tabBar->windows();
diff -urN ../tmp-orig/sim-0.9.3/plugins/_core/core.cpp ./plugins/_core/core.cpp
--- ../tmp-orig/sim-0.9.3/plugins/_core/core.cpp        2004-03-30 
01:42:24.000000000 +0200
+++ ./plugins/_core/core.cpp    2005-03-22 16:26:52.000000000 +0100
@@ -1782,7 +1782,7 @@
             return e->param();
         }
     case EventRemovePreferences:{
-            unsigned id = (unsigned)(e->param());
+            unsigned long id = (unsigned long)(e->param());
             Event eCmd(EventCommandRemove, (void*)id);
             eCmd.process();
             preferences.erase(id);
@@ -1858,7 +1858,7 @@
             return e->param();
         }
     case EventRemoveMessageType:{
-            unsigned id = (unsigned)(e->param());
+            unsigned long id = (unsigned long)(e->param());
             CommandDef *def;
             def = CorePlugin::m_plugin->messageTypes.find(id);
             if (def){
@@ -2015,7 +2015,7 @@
             return NULL;
         }
     case EventDefaultAction:{
-            unsigned contact_id = (unsigned)(e->param());
+            unsigned long contact_id = (unsigned long)(e->param());
             unsigned index = 0;
             for (list<msg_id>::iterator it = 
CorePlugin::m_plugin->unread.begin(); it != CorePlugin::m_plugin->unread.end(); 
++it, index++){
                 if ((*it).contact != contact_id)
@@ -2166,7 +2166,7 @@
             return e->param();
         }
     case EventContactOnline:{
-            Contact *contact = getContacts()->contact((unsigned)(e->param()));
+            Contact *contact = getContacts()->contact((unsigned 
long)(e->param()));
             if (contact){
                 CoreUserData *data = 
(CoreUserData*)(contact->getUserData(user_data_id));
                 if (data->OpenOnOnline.bValue){
@@ -2199,7 +2199,7 @@
                 return NULL;
             }
             if (cmd->id == CmdContactClients){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact == NULL)
                     return NULL;
                 vector<clientContact> ways;
@@ -2473,7 +2473,7 @@
                 return e->param();
             }
             if (cmd->menu_id == MenuContainer){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact){
                     unsigned nContainers = 1;
                     QWidgetList  *list = QApplication::topLevelWidgets();
@@ -2514,7 +2514,7 @@
             }
             if (cmd->menu_id == MenuMessage){
                 cmd->flags &= ~COMMAND_CHECKED;
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact){
                     vector<clientContact> ways;
                     getWays(ways, contact);
@@ -2773,9 +2773,9 @@
                 if (mdef->create == NULL)
                     return NULL;
                 msg = mdef->create(NULL);
-                msg->setContact((unsigned)(cmd->param));
+                msg->setContact((unsigned long)(cmd->param));
                 if (mdef->flags & MESSAGE_SILENT){
-                    Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                    Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                     if (contact){
                         ClientDataIterator it(contact->clientData);
                         void *data;
@@ -2871,7 +2871,7 @@
             }
 
             if (cmd->id == CmdSeparate){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact == NULL)
                     return NULL;
                 unsigned n = cmd->menu_id - CmdContactClients - 1;
@@ -2920,7 +2920,7 @@
                 return e->param();
             }
             if (cmd->id == CmdHistory){
-                unsigned id = (unsigned)(cmd->param);
+                unsigned long id = (unsigned long)(cmd->param);
                 HistoryWindow *wnd = NULL;
                 QWidgetList  *list = QApplication::topLevelWidgets();
                 QWidgetListIt it(*list);
@@ -3175,7 +3175,7 @@
                 return e->param();
             }
             if ((cmd->menu_id > CmdContactResource) && (cmd->menu_id <= 
CmdContactResource + 0x100)){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 CommandDef *def = messageTypes.find(cmd->id);
                 if (def && contact){
                     unsigned nRes = cmd->menu_id - CmdContactResource - 1;
@@ -3202,7 +3202,7 @@
                                 getToken(res, ',');
                                 MessageDef *mdef = (MessageDef*)(def->param);
                                 Message *msg = mdef->create(NULL);
-                                msg->setContact((unsigned)(cmd->param));
+                                msg->setContact((unsigned long)(cmd->param));
                                 
msg->setClient(cc.client->dataName(data).c_str());
                                 
msg->setResource(QString::fromUtf8(res.c_str()));
                                 Event eOpen(EventOpenMessage, &msg);
@@ -3216,7 +3216,7 @@
                 return NULL;
             }
             if ((cmd->menu_id > CmdContactClients) && (cmd->menu_id <= 
CmdContactClients + 0x100)){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 CommandDef *def = messageTypes.find(cmd->id);
                 if (def && contact){
                     unsigned n = cmd->menu_id - CmdContactClients - 1;
@@ -3240,7 +3240,7 @@
 
                         MessageDef *mdef = (MessageDef*)(def->param);
                         Message *msg = mdef->create(NULL);
-                        msg->setContact((unsigned)(cmd->param));
+                        msg->setContact((unsigned long)(cmd->param));
                         msg->setClient(cc.client->dataName(data).c_str());
                         Event eOpen(EventOpenMessage, &msg);
                         eOpen.process();
@@ -3304,7 +3304,7 @@
     QWidget *w;
     Contact *contact = NULL;
     Group   *group   = NULL;
-    unsigned id = (unsigned)(cmd->param);
+    unsigned long id = (unsigned long)(cmd->param);
     if (cmd->menu_id == MenuContact){
         contact = getContacts()->contact(id);
         if (contact == NULL)
diff -urN ../tmp-orig/sim-0.9.3/plugins/_core/historywnd.cpp 
./plugins/_core/historywnd.cpp
--- ../tmp-orig/sim-0.9.3/plugins/_core/historywnd.cpp  2004-01-18 
19:15:39.000000000 +0100
+++ ./plugins/_core/historywnd.cpp      2005-03-22 16:41:30.000000000 +0100
@@ -131,7 +131,7 @@
     }
     if (e->type() == EventCheckState){
         CommandDef *cmd = (CommandDef*)(e->param());
-        if ((cmd->id == CmdHistoryDirection) && ((unsigned)(cmd->param) == 
m_id)){
+        if ((cmd->id == CmdHistoryDirection) && ((unsigned long)(cmd->param) 
== m_id)){
             cmd->flags &= ~COMMAND_CHECKED;
             if (m_bDirection)
                 cmd->flags |= COMMAND_CHECKED;
@@ -146,7 +146,7 @@
     }
     if (e->type() == EventCommandExec){
         CommandDef *cmd = (CommandDef*)(e->param());
-        if ((unsigned)(cmd->param) != m_id)
+        if ((unsigned long)(cmd->param) != m_id)
             return NULL;
         if (cmd->id == CmdHistoryDirection){
             bool bDirection = ((cmd->flags & COMMAND_CHECKED) != 0);
diff -urN ../tmp-orig/sim-0.9.3/plugins/_core/msgview.cpp 
./plugins/_core/msgview.cpp
--- ../tmp-orig/sim-0.9.3/plugins/_core/msgview.cpp     2004-03-30 
01:42:24.000000000 +0200
+++ ./plugins/_core/msgview.cpp 2005-03-22 16:39:38.000000000 +0100
@@ -802,7 +802,7 @@
         return NULL;
     }
     if (e->type() == EventHistoryConfig){
-        unsigned id = (unsigned)(e->param());
+        unsigned long id = (unsigned long)(e->param());
         if (id && (id != m_id))
             return NULL;
         reload();
diff -urN ../tmp-orig/sim-0.9.3/plugins/_core/tmpl.cpp ./plugins/_core/tmpl.cpp
--- ../tmp-orig/sim-0.9.3/plugins/_core/tmpl.cpp        2004-01-14 
12:11:46.000000000 +0100
+++ ./plugins/_core/tmpl.cpp    2005-03-22 17:33:43.000000000 +0100
@@ -146,7 +146,7 @@
         if (tagName == "IP"){
             Event e(EventGetContactIP, contact);
             struct in_addr addr;
-            addr.s_addr = (unsigned)(e.process());
+            addr.s_addr = (unsigned long)(e.process());
             res += inet_ntoa(addr);
             continue;
         }
diff -urN ../tmp-orig/sim-0.9.3/plugins/_core/usercfg.cpp 
./plugins/_core/usercfg.cpp
--- ../tmp-orig/sim-0.9.3/plugins/_core/usercfg.cpp     2003-08-02 
21:21:24.000000000 +0200
+++ ./plugins/_core/usercfg.cpp 2005-03-22 16:36:40.000000000 +0100
@@ -463,7 +463,7 @@
             return NULL;
         }
     case EventCommandRemove:
-        removeCommand((unsigned)(e->param()));
+        removeCommand((unsigned long)(e->param()));
         return NULL;
     case EventLanguageChanged:
     case EventPluginChanged:
diff -urN ../tmp-orig/sim-0.9.3/plugins/_core/userview.cpp 
./plugins/_core/userview.cpp
--- ../tmp-orig/sim-0.9.3/plugins/_core/userview.cpp    2004-03-30 
01:42:24.000000000 +0200
+++ ./plugins/_core/userview.cpp        2005-03-22 16:30:25.000000000 +0100
@@ -359,7 +359,7 @@
     case EventCommandExec:{
             CommandDef *cmd = (CommandDef*)(e->param());
             if (cmd->menu_id == MenuContact){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact){
                     if (cmd->id == CmdContactDelete){
                         QListViewItem *item = findContactItem(contact->id());
@@ -404,7 +404,7 @@
                         while ((w = it.current()) != NULL){
                             if (w->inherits("Container")){
                                 Container *c =  static_cast<Container*>(w);
-                                wnd = c->wnd((unsigned)(cmd->param));
+                                wnd = c->wnd((unsigned long)(cmd->param));
                                 if (wnd)
                                     break;
                             }
@@ -428,7 +428,7 @@
                 }
             }
             if (cmd->menu_id == MenuContactGroup){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact){
                     Group *grp = getContacts()->group(cmd->id - 
CmdContactGroup);
                     if (grp && (grp->id() != contact->getGroup())){
@@ -440,7 +440,7 @@
                 }
             }
             if (cmd->menu_id == MenuContainer){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact){
                     Container *from = NULL;
                     Container *to = NULL;
@@ -516,7 +516,7 @@
                 return e->param();
             }
             if (cmd->id == CmdGrpRename){
-                QListViewItem *item = findGroupItem((unsigned)(cmd->param));
+                QListViewItem *item = findGroupItem((unsigned 
long)(cmd->param));
                 if (item){
                     setCurrentItem(item);
                     renameGroup();
@@ -524,7 +524,7 @@
                 return e->param();
             }
             if (cmd->id == CmdGrpUp){
-                unsigned grp_id = (unsigned)(cmd->param);
+                unsigned long grp_id = (unsigned long)(cmd->param);
                 getContacts()->moveGroup(grp_id, true);
                 QListViewItem *item = findGroupItem(grp_id);
                 if (item){
@@ -534,7 +534,7 @@
                 return e->param();
             }
             if (cmd->id == CmdGrpDown){
-                unsigned grp_id = (unsigned)(cmd->param);
+                unsigned long grp_id = (unsigned long)(cmd->param);
                 getContacts()->moveGroup(grp_id, false);
                 QListViewItem *item = findGroupItem(grp_id);
                 if (item){
@@ -544,7 +544,7 @@
                 return e->param();
             }
             if (cmd->id == CmdGrpDelete){
-                unsigned grp_id = (unsigned)(cmd->param);
+                unsigned long grp_id = (unsigned long)(cmd->param);
                 QListViewItem *item = findGroupItem(grp_id);
                 Group *g = getContacts()->group(grp_id);
                 if (item && g){
@@ -578,14 +578,14 @@
             }
             if (cmd->menu_id == MenuContact){
                 if (cmd->id == CmdContactTitle){
-                    Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                    Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                     if (contact){
                         cmd->text_wrk = strdup(contact->getName().utf8());
                         return e->param();
                     }
                 }
                 if (cmd->id == CmdShowAlways){
-                    Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                    Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                     if (contact){
                         ListUserData *data = 
(ListUserData*)(contact->getUserData(CorePlugin::m_plugin->list_data_id, true));
                         cmd->flags &= ~COMMAND_CHECKED;
@@ -601,7 +601,7 @@
                     QWidget * w;
                     while ((w = it.current()) != NULL){
                         if (w->inherits("Container")){
-                            wnd = 
static_cast<Container*>(w)->wnd((unsigned)(cmd->param));
+                            wnd = static_cast<Container*>(w)->wnd((unsigned 
long)(cmd->param));
                             if (wnd)
                                 break;
                         }
@@ -654,7 +654,7 @@
             if (cmd->menu_id == MenuContactGroup){
                 if (cmd->id == CmdContactGroup){
                     unsigned grpId = 0;
-                    Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                    Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                     if (contact)
                         grpId = contact->getGroup();
                     unsigned nGroups = 0;
@@ -689,7 +689,7 @@
                 }
             }
             if (cmd->menu_id == MenuGroup){
-                unsigned grp_id = (unsigned)(cmd->param);
+                unsigned long grp_id = (unsigned long)(cmd->param);
                 if (grp_id){
                     if (cmd->id == CmdGrpTitle){
                         Group *g = getContacts()->group(grp_id);
@@ -739,14 +739,14 @@
 
 void UserView::deleteGroup(void *p)
 {
-    Group *grp = getContacts()->group((unsigned)p);
+    Group *grp = getContacts()->group((unsigned long)p);
     if (grp)
         delete grp;
 }
 
 void UserView::deleteContact(void *p)
 {
-    Contact *contact = getContacts()->contact((unsigned)p);
+    Contact *contact = getContacts()->contact((unsigned long)p);
     if (contact == NULL)
         return;
     ContactItem *item = findContactItem(contact->id());
diff -urN ../tmp-orig/sim-0.9.3/plugins/action/action.cpp 
./plugins/action/action.cpp
--- ../tmp-orig/sim-0.9.3/plugins/action/action.cpp     2004-01-18 
19:15:39.000000000 +0100
+++ ./plugins/action/action.cpp 2005-03-22 17:35:54.000000000 +0100
@@ -133,7 +133,7 @@
     if (e->type() == EventCheckState){
         CommandDef *cmd = (CommandDef*)(e->param());
         if ((cmd->id == CmdAction) && (cmd->menu_id == MenuContact)){
-            Contact *contact = getContacts()->contact((unsigned)(cmd->param));
+            Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
             if (contact == NULL)
                 return NULL;
             ActionUserData *data = 
(ActionUserData*)(contact->getUserData(action_data_id));
@@ -180,7 +180,7 @@
         CommandDef *cmd = (CommandDef*)(e->param());
         if ((cmd->menu_id == MenuContact) && (cmd->id >= CmdAction)){
             unsigned n = cmd->id - CmdAction;
-            Contact *contact = getContacts()->contact((unsigned)(cmd->param));
+            Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
             if (contact == NULL)
                 return NULL;
             ActionUserData *data = 
(ActionUserData*)(contact->getUserData(action_data_id));
diff -urN ../tmp-orig/sim-0.9.3/plugins/dock/dockwnd.cpp 
./plugins/dock/dockwnd.cpp
--- ../tmp-orig/sim-0.9.3/plugins/dock/dockwnd.cpp      2004-03-30 
08:37:17.000000000 +0200
+++ ./plugins/dock/dockwnd.cpp  2005-03-22 17:39:15.000000000 +0100
@@ -772,7 +772,7 @@
     XFree( hints );
 
     Event eArgc(EventArgc);
-    int argc = (int)eArgc.process();
+    long argc = (long)eArgc.process();
     Event eArgv(EventArgv);
     char **argv = (char**)eArgv.process();
     XSetCommand(dsp, win, argv, argc);
diff -urN ../tmp-orig/sim-0.9.3/plugins/filter/filter.cpp 
./plugins/filter/filter.cpp
--- ../tmp-orig/sim-0.9.3/plugins/filter/filter.cpp     2004-02-18 
19:52:44.000000000 +0100
+++ ./plugins/filter/filter.cpp 2005-03-22 17:42:14.000000000 +0100
@@ -188,7 +188,7 @@
         CommandDef *cmd = (CommandDef*)(e->param());
         if (cmd->id == CmdIgnore){
             cmd->flags &= ~BTN_HIDE;
-            Contact *contact = getContacts()->contact((unsigned)(cmd->param));
+            Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
             if (contact && contact->getGroup())
                 cmd->flags |= BTN_HIDE;
             return e->param();
@@ -208,7 +208,7 @@
         }
         if (cmd->menu_id == MenuContactGroup){
             if (cmd->id == CmdIgnoreList){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact == NULL)
                     return NULL;
                 cmd->flags &= COMMAND_CHECKED;
@@ -221,7 +221,7 @@
     if (e->type() == EventCommandExec){
         CommandDef *cmd = (CommandDef*)(e->param());
         if (cmd->id == CmdIgnore){
-            Contact *contact = getContacts()->contact((unsigned)(cmd->param));
+            Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
             if (contact){
                 QString text = i18n("Add %1 to ignore list?") 
.arg(contact->getName());
                 Command cmd;
@@ -288,7 +288,7 @@
         }
         if (cmd->menu_id == MenuContactGroup){
             if (cmd->id == CmdIgnoreList){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact == NULL)
                     return NULL;
                 contact->setIgnore((cmd->flags & COMMAND_CHECKED) == 0);
@@ -397,7 +397,7 @@
 
 void FilterPlugin::addToIgnore(void *p)
 {
-    Contact *contact = getContacts()->contact((unsigned)p);
+    Contact *contact = getContacts()->contact((unsigned long)p);
     if (contact && !contact->getIgnore()){
         contact->setIgnore(true);
         Event e(EventContactChanged, contact);
diff -urN ../tmp-orig/sim-0.9.3/plugins/floaty/floaty.cpp 
./plugins/floaty/floaty.cpp
--- ../tmp-orig/sim-0.9.3/plugins/floaty/floaty.cpp     2004-03-22 
21:03:11.000000000 +0100
+++ ./plugins/floaty/floaty.cpp 2005-03-22 17:43:52.000000000 +0100
@@ -155,7 +155,7 @@
     case EventCheckState:{
             CommandDef *cmd = (CommandDef*)(e->param());
             if (cmd->id == CmdFloaty){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact){
                     FloatyUserData *data = 
(FloatyUserData*)(contact->userData.getUserData(user_data_id, false));
                     if (data){
@@ -173,7 +173,7 @@
     case EventCommandExec:{
             CommandDef *cmd = (CommandDef*)(e->param());
             if (cmd->id == CmdFloaty){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact){
                     FloatyUserData *data = 
(FloatyUserData*)(contact->userData.getUserData(user_data_id, false));
                     if (data){
@@ -183,7 +183,7 @@
                         contact->userData.freeUserData(user_data_id);
                     }else{
                         data = 
(FloatyUserData*)(contact->userData.getUserData(user_data_id, true));
-                        FloatyWnd *wnd = new FloatyWnd(this, 
(unsigned)(cmd->param));
+                        FloatyWnd *wnd = new FloatyWnd(this, (unsigned 
long)(cmd->param));
                         wnd->move(0, 0);
                         wnd->show();
                     }
diff -urN ../tmp-orig/sim-0.9.3/plugins/gpg/gpg.cpp ./plugins/gpg/gpg.cpp
--- ../tmp-orig/sim-0.9.3/plugins/gpg/gpg.cpp   2004-03-26 18:46:42.000000000 
+0100
+++ ./plugins/gpg/gpg.cpp       2005-03-22 17:45:30.000000000 +0100
@@ -292,7 +292,7 @@
                 }
                 if (cmd->id == MessageGPGUse){
                     cmd->flags &= ~COMMAND_CHECKED;
-                    Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                    Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                     if (contact == NULL)
                         return NULL;
                     GpgUserData *data = 
(GpgUserData*)(contact->userData.getUserData(user_data_id, false));
@@ -308,7 +308,7 @@
     case EventCommandExec:{
             CommandDef *cmd = (CommandDef*)(e->param());
             if ((cmd->menu_id == MenuMessage) && (cmd->id == MessageGPGUse)){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact == NULL)
                     return NULL;
                 GpgUserData *data = 
(GpgUserData*)(contact->userData.getUserData(user_data_id, false));
@@ -369,7 +369,7 @@
                     GpgUserData *data = 
(GpgUserData*)(contact->userData.getUserData(user_data_id, false));
                     if (data && data->Key.ptr && data->Use.bValue){
                         QString output = 
QFile::decodeName(user_file("m.").c_str());
-                        output += QString::number((unsigned)ms->msg);
+                        output += QString::number((unsigned long)ms->msg);
                         QString input = output + ".in";
                         QFile in(input);
                         if (!in.open(IO_WriteOnly | IO_Truncate)){
@@ -423,7 +423,7 @@
                 char SIGN_KEY[] = "-----BEGIN PGP PUBLIC KEY BLOCK-----";
                 if (text.left(strlen(SIGN_MSG)) == SIGN_MSG){
                     QString output = 
QFile::decodeName(user_file("m.").c_str());
-                    output += QString::number((unsigned)msg);
+                    output += QString::number((unsigned long)msg);
                     QString input = output + ".in";
                     QFile in(input);
                     if (!in.open(IO_WriteOnly | IO_Truncate)){
@@ -460,7 +460,7 @@
                 }
                 if (text.left(strlen(SIGN_KEY)) == SIGN_KEY){
                     QString input = QFile::decodeName(user_file("m.").c_str());
-                    input  += QString::number((unsigned)msg);
+                    input  += QString::number((unsigned long)msg);
                     input += ".in";
                     QFile in(input);
                     if (!in.open(IO_WriteOnly | IO_Truncate)){
diff -urN ../tmp-orig/sim-0.9.3/plugins/icq/icqclient.cpp 
./plugins/icq/icqclient.cpp
--- ../tmp-orig/sim-0.9.3/plugins/icq/icqclient.cpp     2004-03-30 
08:37:17.000000000 +0200
+++ ./plugins/icq/icqclient.cpp 2005-03-22 17:47:31.000000000 +0100
@@ -2623,7 +2623,7 @@
         CommandDef *cmd = (CommandDef*)(e->param());
         if (cmd->menu_id == MenuEncoding){
             if (cmd->id == CmdChangeEncoding){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact == NULL)
                     return NULL;
                 ClientDataIterator itClient(contact->clientData, this);
@@ -2725,7 +2725,7 @@
         }
         if ((cmd->bar_id == ToolBarContainer) || (cmd->bar_id == BarHistory)){
             if (cmd->id == CmdChangeEncoding){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact == NULL){
                     cmd->flags |= BTN_HIDE;
                     return e->param();
@@ -2749,7 +2749,7 @@
         }
         if (cmd->menu_id == MenuContactGroup){
             if (cmd->id == CmdVisibleList){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact == NULL)
                     return NULL;
                 for (unsigned i = 0; i < getContacts()->nClients(); i++){
@@ -2772,7 +2772,7 @@
                 return bOK ? e->param() : NULL;
             }
             if (cmd->id == CmdInvisibleList){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact == NULL)
                     return NULL;
                 for (unsigned i = 0; i < getContacts()->nClients(); i++){
@@ -2803,7 +2803,7 @@
                 
ICQPlugin::core->setShowAllEncodings(!ICQPlugin::core->getShowAllEncodings());
                 return e->param();
             }
-            Contact *contact = getContacts()->contact((unsigned)(cmd->param));
+            Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
             if (contact == NULL)
                 return NULL;
             QCString codecStr;
@@ -2896,7 +2896,7 @@
         }
         if (cmd->menu_id == MenuContactGroup){
             if (cmd->id == CmdVisibleList){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact == NULL)
                     return NULL;
                 ICQUserData *data;
@@ -2909,7 +2909,7 @@
                 return e->param();
             }
             if (cmd->id == CmdInvisibleList){
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact == NULL)
                     return NULL;
                 ICQUserData *data;
diff -urN ../tmp-orig/sim-0.9.3/plugins/icq/icqdirect.cpp 
./plugins/icq/icqdirect.cpp
--- ../tmp-orig/sim-0.9.3/plugins/icq/icqdirect.cpp     2004-03-28 
20:45:07.000000000 +0200
+++ ./plugins/icq/icqdirect.cpp 2005-03-22 17:49:01.000000000 +0100
@@ -277,7 +277,7 @@
     }
     if (m_state != Logged){
         ICQPlugin *plugin = 
static_cast<ICQPlugin*>(m_client->protocol()->plugin());
-        log_packet(m_socket->readBuffer, false, plugin->ICQDirectPacket, 
number((unsigned)this).c_str());
+        log_packet(m_socket->readBuffer, false, plugin->ICQDirectPacket, 
number((unsigned long)this).c_str());
     }
     switch (m_state){
     case Logged:{
@@ -402,7 +402,7 @@
     if (m_version >= 7)
         m_socket->writeBuffer.pack(0x00000000L);
     ICQPlugin *plugin = 
static_cast<ICQPlugin*>(m_client->protocol()->plugin());
-    log_packet(m_socket->writeBuffer, true, plugin->ICQDirectPacket, 
number((unsigned)this).c_str());
+    log_packet(m_socket->writeBuffer, true, plugin->ICQDirectPacket, 
number((unsigned long)this).c_str());
     m_socket->write();
 }
 
@@ -413,7 +413,7 @@
     m_socket->writeBuffer.pack((unsigned short)0x0001);
     m_socket->writeBuffer.pack((unsigned short)0x0000);
     ICQPlugin *plugin = 
static_cast<ICQPlugin*>(m_client->protocol()->plugin());
-    log_packet(m_socket->writeBuffer, true, plugin->ICQDirectPacket, 
number((unsigned)this).c_str());
+    log_packet(m_socket->writeBuffer, true, plugin->ICQDirectPacket, 
number((unsigned long)this).c_str());
     m_socket->write();
 }
 
@@ -506,7 +506,7 @@
     case WaitInit2:
         if (m_bIncoming){
             ICQPlugin *plugin = 
static_cast<ICQPlugin*>(m_client->protocol()->plugin());
-            log_packet(m_socket->readBuffer, false, plugin->ICQDirectPacket, 
number((unsigned)this).c_str());
+            log_packet(m_socket->readBuffer, false, plugin->ICQDirectPacket, 
number((unsigned long)this).c_str());
             if (m_version < 8){
                 if (m_data->Direct.ptr){
                     m_socket->error_state("Direct connection already 
established");
@@ -517,7 +517,7 @@
                 break;
             }
             plugin = static_cast<ICQPlugin*>(m_client->protocol()->plugin());
-            log_packet(m_socket->readBuffer, false, plugin->ICQDirectPacket, 
number((unsigned)this).c_str());
+            log_packet(m_socket->readBuffer, false, plugin->ICQDirectPacket, 
number((unsigned long)this).c_str());
             m_socket->readBuffer.incReadPos(13);
             char p[16];
             m_socket->readBuffer.unpack(p, 16);
@@ -1559,7 +1559,7 @@
     }
     m_name += number(m_data->Uin.value);
     m_name += ".";
-    m_name += number((unsigned)this);
+    m_name += number((unsigned long)this);
     return m_name.c_str();
 }
 
diff -urN ../tmp-orig/sim-0.9.3/plugins/icq/icqsearch.cpp 
./plugins/icq/icqsearch.cpp
--- ../tmp-orig/sim-0.9.3/plugins/icq/icqsearch.cpp     2004-02-22 
17:15:41.000000000 +0100
+++ ./plugins/icq/icqsearch.cpp 2005-03-22 17:51:37.000000000 +0100
@@ -350,7 +350,7 @@
 void *ICQSearch::processEvent(Event *e)
 {
     if (e->type() == EventRandomChat){
-        m_randomUin = (unsigned)(e->param());
+        m_randomUin = (unsigned long)(e->param());
         if (m_randomUin == 0){
             edtStatus->setText(i18n("Search fail"));
         }else{
diff -urN ../tmp-orig/sim-0.9.3/plugins/jabber/jabberclient.cpp 
./plugins/jabber/jabberclient.cpp
--- ../tmp-orig/sim-0.9.3/plugins/jabber/jabberclient.cpp       2004-03-28 
20:45:08.000000000 +0200
+++ ./plugins/jabber/jabberclient.cpp   2005-03-22 18:05:08.000000000 +0100
@@ -448,7 +448,7 @@
                 cmd->flags |= COMMAND_RECURSIVE;
                 return e->param();
             }
-            Contact *contact = getContacts()->contact((unsigned)(cmd->param));
+            Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
             if (contact == NULL)
                 return NULL;
             clientData *data;
@@ -504,7 +504,7 @@
                 if (url.isEmpty())
                     url = QString::fromUtf8(getServer());
             }else{
-                Contact *contact = 
getContacts()->contact((unsigned)(cmd->param));
+                Contact *contact = getContacts()->contact((unsigned 
long)(cmd->param));
                 if (contact){
                     clientData *data;
                     ClientDataIterator it(contact->clientData, this);
@@ -560,7 +560,7 @@
     }
     if (e->type() == EventTemplateExpanded){
         TemplateExpand *t = (TemplateExpand*)(e->param());
-        setStatus((unsigned)(t->param), quoteString(t->tmpl, 
quoteNOBR).utf8());
+        setStatus((unsigned long)(t->param), quoteString(t->tmpl, 
quoteNOBR).utf8());
     }
     if (e->type() == EventContactChanged){
         Contact *contact = (Contact*)(e->param());
@@ -1881,7 +1881,7 @@
             if (!resource.empty())
                 resource += ";";
             const char *dicon = get_icon(data, 
atol(get_str(data->ResourceStatus, i)), false);
-            resource += number((unsigned)dicon);
+            resource += number((unsigned long)dicon);
             resource += ",";
             resource += quoteChars(get_str(data->Resources, i), ";");
         }
diff -urN ../tmp-orig/sim-0.9.3/plugins/shortcuts/shortcuts.cpp 
./plugins/shortcuts/shortcuts.cpp
--- ../tmp-orig/sim-0.9.3/plugins/shortcuts/shortcuts.cpp       2004-03-28 
20:45:09.000000000 +0200
+++ ./plugins/shortcuts/shortcuts.cpp   2005-03-22 18:11:20.371908335 +0100
@@ -503,7 +503,7 @@
         }
     }
     if (e->type() == EventCommandRemove){
-        unsigned id = (unsigned)(e->param());
+        unsigned long id = (unsigned long)(e->param());
         MAP_STR::iterator it_key = oldKeys.find(id);
         if (it_key != oldKeys.end())
             oldKeys.erase(it_key);
diff -urN ../tmp-orig/sim-0.9.3/plugins/sound/sound.cpp 
./plugins/sound/sound.cpp
--- ../tmp-orig/sim-0.9.3/plugins/sound/sound.cpp       2004-03-16 
17:15:28.000000000 +0100
+++ ./plugins/sound/sound.cpp   2005-03-22 18:12:12.000000000 +0100
@@ -256,7 +256,7 @@
         bool bEnable = !data->Disable.bValue;
         if (bEnable && data->NoSoundIfActive.bValue){
             Event e(EventActiveContact);
-            if ((unsigned)(e.process()) == contact->id())
+            if ((unsigned long)(e.process()) == contact->id())
                 bEnable = false;
         }
         if (bEnable){
diff -urN ../tmp-orig/sim-0.9.3/sim/api/cfg.cpp ./sim/api/cfg.cpp
--- ../tmp-orig/sim-0.9.3/sim/api/cfg.cpp       2004-03-16 17:15:30.000000000 
+0100
+++ ./sim/api/cfg.cpp   2005-03-22 16:13:49.000000000 +0100
@@ -567,7 +567,7 @@
                 break;
             case DATA_ULONG:
             case DATA_LONG:
-                data->value = (unsigned)(def->def_value);
+                data->value = (unsigned long)(def->def_value);
                 break;
             case DATA_BOOL:
                 data->bValue = (def->def_value != NULL);
diff -urN ../tmp-orig/sim-0.9.3/sim/api/cmddef.cpp ./sim/api/cmddef.cpp
--- ../tmp-orig/sim-0.9.3/sim/api/cmddef.cpp    2003-11-10 10:11:10.000000000 
+0100
+++ ./sim/api/cmddef.cpp        2005-03-22 16:16:13.000000000 +0100
@@ -121,7 +121,7 @@
         }
         break;
     case EventCommandRemove:
-        if (delCommand((unsigned)(e->param())))
+        if (delCommand((unsigned long)(e->param())))
             cfg.clear();
         break;
     }
diff -urN ../tmp-orig/sim-0.9.3/sim/api/plugins.cpp ./sim/api/plugins.cpp
--- ../tmp-orig/sim-0.9.3/sim/api/plugins.cpp   2004-03-28 20:46:15.000000000 
+0200
+++ ./sim/api/plugins.cpp       2005-03-22 16:17:20.000000000 +0100
@@ -214,7 +214,7 @@
             return;
     }
     Event eStart(EventInit);
-    if ((int)eStart.process() == -1) {
+    if ((long)eStart.process() == -1) {
         log(L_ERROR,"EventInit failed - aborting!");
         m_bAbort = true;
         return;
@@ -248,7 +248,7 @@
         p = (CmdParam*)(e->param());
         return (void*)findParam(p->arg, p->descr, p->value);
     case EventPluginGetInfo:
-        return getInfo((unsigned)(e->param()));
+        return getInfo((unsigned long)(e->param()));
     case EventApplyPlugin:
         return (void*)setInfo((const char*)(e->param()));
     case EventPluginsUnload:
@@ -429,7 +429,7 @@
         info.base = m_base;
     }
     info.plugin = info.info->create(info.base, m_bInInit, info.config);
-    if ((unsigned)(info.plugin) == ABORT_LOADING){
+    if ((unsigned long)(info.plugin) == ABORT_LOADING){
         m_bAbort = true;
         info.plugin = NULL;
     }
diff -urN ../tmp-orig/sim-0.9.3/sim/api/simapi.cpp ./sim/api/simapi.cpp
--- ../tmp-orig/sim-0.9.3/sim/api/simapi.cpp    2004-03-28 20:46:15.000000000 
+0200
+++ ./sim/api/simapi.cpp        2005-03-22 16:17:49.000000000 +0100
@@ -491,7 +491,7 @@
 {
     Event e(EventGetIcon, (void*)name);
     const QIconSet *res = (const QIconSet*)e.process();
-    if ((unsigned)res == (unsigned)(-1))
+    if ((unsigned long)res == (unsigned long)(-1))
         res = NULL;
     return res;
 }
diff -urN ../tmp-orig/sim-0.9.3/sim/ui/toolbtn.cpp ./sim/ui/toolbtn.cpp
--- ../tmp-orig/sim-0.9.3/sim/ui/toolbtn.cpp    2004-03-13 16:56:12.000000000 
+0100
+++ ./sim/ui/toolbtn.cpp        2005-03-22 16:20:15.000000000 +0100
@@ -616,7 +616,7 @@
             toolBarChanged();
         break;
     case EventCommandRemove:
-        button = buttons->remove((unsigned)(e->param()));
+        button = buttons->remove((unsigned long)(e->param()));
         if (button)
             delete button;
         break;


--- End Message ---
--- Begin Message ---
Hello,

0.9.3.99svn20060428-2 compiles on amd64, so closing this.

Thanks.

-- 
BR. Alexander 'zowers' Petrov. 

Attachment: pgpLZfbC2ej60.pgp
Description: PGP signature


--- End Message ---

Reply via email to