comparison src/protocols/msn/slpmsg.c @ 9198:ab6636c5a136

[gaim-migrate @ 9993] Updated all the copyright headers for all the *.[ch] files -- all 63. No fun, but I receive great satisfaction in knowing that you all have to recompile this, again. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 06 Jun 2004 03:42:55 +0000
parents 502707ca1836
children ec2a51abcc71
comparison
equal deleted inserted replaced
9197:ec417d2f9666 9198:ab6636c5a136
1 /** 1 /**
2 * @file slpmsg.h SLP Message functions 2 * @file slpmsg.h SLP Message functions
3 * 3 *
4 * gaim 4 * gaim
5 *
6 * Gaim is the legal property of its developers, whose names are too numerous
7 * to list here. Please refer to the COPYRIGHT file distributed with this
8 * source distribution.
5 * 9 *
6 * This program is free software; you can redistribute it and/or modify 10 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 11 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or 12 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version. 13 * (at your option) any later version.
46 50
47 slplink = slpmsg->slplink; 51 slplink = slpmsg->slplink;
48 52
49 if (slpmsg->fp != NULL) 53 if (slpmsg->fp != NULL)
50 fclose(slpmsg->fp); 54 fclose(slpmsg->fp);
51 55
52 if (slpmsg->buffer != NULL) 56 if (slpmsg->buffer != NULL)
53 g_free(slpmsg->buffer); 57 g_free(slpmsg->buffer);
54 58
55 #ifdef DEBUG_SLP 59 #ifdef DEBUG_SLP
56 /* 60 /*
80 { 84 {
81 if (body != NULL) 85 if (body != NULL)
82 slpmsg->buffer = g_memdup(body, size); 86 slpmsg->buffer = g_memdup(body, size);
83 else 87 else
84 slpmsg->buffer = g_new0(char, size); 88 slpmsg->buffer = g_new0(char, size);
85 89
86 slpmsg->size = size; 90 slpmsg->size = size;
87 } 91 }
88 92
89 void 93 void
90 msn_slpmsg_open_file(MsnSlpMessage *slpmsg, const char *file_name) 94 msn_slpmsg_open_file(MsnSlpMessage *slpmsg, const char *file_name)