svn commit: samba r25010 - in branches/SAMBA_4_0: .
source/libcli/util
jelmer at samba.org
jelmer at samba.org
Fri Sep 7 22:01:17 GMT 2007
Author: jelmer
Date: 2007-09-07 22:01:15 +0000 (Fri, 07 Sep 2007)
New Revision: 25010
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25010
Log:
Avoid uses of pstring
Modified:
branches/SAMBA_4_0/
branches/SAMBA_4_0/source/libcli/util/doserr.c
branches/SAMBA_4_0/source/libcli/util/nterr.c
Changeset:
Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...
Modified: branches/SAMBA_4_0/source/libcli/util/doserr.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/util/doserr.c 2007-09-07 20:57:01 UTC (rev 25009)
+++ branches/SAMBA_4_0/source/libcli/util/doserr.c 2007-09-07 22:01:15 UTC (rev 25010)
@@ -20,7 +20,6 @@
/* DOS error codes. please read doserr.h */
#include "includes.h"
-#include "pstring.h"
struct werror_code_struct {
const char *dos_errstr;
@@ -133,7 +132,7 @@
*****************************************************************************/
const char *win_errstr(WERROR werror)
{
- static pstring msg;
+ static char msg[40];
int idx = 0;
while (dos_errs[idx].dos_errstr != NULL) {
Modified: branches/SAMBA_4_0/source/libcli/util/nterr.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/util/nterr.c 2007-09-07 20:57:01 UTC (rev 25009)
+++ branches/SAMBA_4_0/source/libcli/util/nterr.c 2007-09-07 22:01:15 UTC (rev 25010)
@@ -20,7 +20,6 @@
/* NT error codes. please read nterr.h */
#include "includes.h"
-#include "pstring.h"
#include "libcli/ldap/ldap.h"
typedef struct
@@ -862,7 +861,7 @@
*****************************************************************************/
const char *get_nt_error_c_code(NTSTATUS nt_code)
{
- static pstring out;
+ static char out[40];
int idx = 0;
while (nt_errs[idx].nt_errstr != NULL) {
More information about the samba-cvs
mailing list