ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/scan.c
(Generate patch)

Comparing hopm/trunk/src/scan.c (file contents):
Revision 5091 by michael, Tue Dec 23 19:59:18 2014 UTC vs.
Revision 5092 by michael, Tue Dec 23 20:12:39 2014 UTC

# Line 231 | Line 231 | void scan_init()
231  
232        /* Build the scanner */
233        scs->scanner = opm_create();
234 <      scs->name = (char *) DupString(sc->name);
234 >      scs->name = xstrdup(sc->name);
235        scs->masks = list_create();
236  
237        /* Setup configuration */
# Line 301 | Line 301 | void scan_init()
301                             "[%s]", mask, scannername);
302                    }
303  
304 <                  node = node_create(DupString(mask));
304 >                  node = node_create(xstrdup(mask));
305                    list_add(scs->masks, node);
306                 }
307                 break;
# Line 473 | Line 473 | struct scan_struct *scan_create(char **u
473  
474     ss = MyMalloc(sizeof *ss);
475  
476 <   ss->irc_nick = (char *) DupString(user[0]);
477 <   ss->irc_username = (char *) DupString(user[1]);
478 <   ss->irc_hostname = (char *) DupString(user[2]);
479 <   ss->ip = (char *) DupString(user[3]);
480 <   ss->proof = (char *) DupString(msg);
476 >   ss->irc_nick = xstrdup(user[0]);
477 >   ss->irc_username = xstrdup(user[1]);
478 >   ss->irc_hostname = xstrdup(user[2]);
479 >   ss->ip = xstrdup(user[3]);
480 >   ss->proof = xstrdup(msg);
481  
482     ss->remote = opm_remote_create(ss->ip);
483     ss->scans = 0;
# Line 1027 | Line 1027 | void scan_manual(char *param, struct Cha
1027     ss->irc_hostname = NULL;
1028     ss->proof        = NULL;
1029  
1030 <   ss->ip = DupString(ip);
1030 >   ss->ip = xstrdup(ip);
1031  
1032     ss->remote = opm_remote_create(ss->ip);
1033     ss->remote->data = ss;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines