~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to lib/nwlib.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
 * KIND, either express or implied.
20
20
 *
21
 
 * $Id: nwlib.c,v 1.11 2008-01-23 02:12:13 gknauf Exp $
 
21
 * $Id: nwlib.c,v 1.12 2008-09-06 05:29:06 yangtse Exp $
22
22
 ***************************************************************************/
23
23
 
24
24
#ifdef NETWARE /* Novell NetWare */
185
185
    NXLock(gLibLock);
186
186
 
187
187
    if(!(app_data = (libdata_t *) get_app_data(id))) {
188
 
      app_data = (libdata_t *) malloc(sizeof(libdata_t));
 
188
      app_data = malloc(sizeof(libdata_t));
189
189
 
190
190
      if(app_data) {
191
191
        memset(app_data, 0, sizeof(libdata_t));
246
246
** important, this just helps to demonstrate that we can have arbitrarily
247
247
** complex per-thread data.
248
248
*/
249
 
      thread_data = (libthreaddata_t *) malloc(sizeof(libthreaddata_t));
 
249
      thread_data = malloc(sizeof(libthreaddata_t));
250
250
 
251
251
      if(thread_data) {
252
252
        thread_data->_errno      = 0;