summaryrefslogtreecommitdiff
path: root/textproc/isearch/patches/patch-Isearch-cgi_cgi-util.cxx
blob: 77939e0319dfb43123fd369ec6731be983a13ae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$NetBSD: patch-Isearch-cgi_cgi-util.cxx,v 1.1 2012/12/21 10:29:46 dholland Exp $

Chase after the C++ standard:
   - use "std" qualification

--- Isearch-cgi/cgi-util.cxx~	1998-05-12 16:48:05.000000000 +0000
+++ Isearch-cgi/cgi-util.cxx
@@ -61,7 +61,7 @@ void CGIAPP::GetInput() {
   CHR *meth, *p, *query=(CHR*)NULL;
 
   if ((meth = (char *)getenv("REQUEST_METHOD"))==NULL) {
-    cout << "Unable to get request_method" << endl;
+    std::cout << "Unable to get request_method" << std::endl;
     exit(1);
   }
   if (!strcmp(meth,"POST")) {
@@ -73,10 +73,10 @@ void CGIAPP::GetInput() {
       query = (char *)getenv("QUERY_STRING");
       Method=GET;
     } else {
-      cout << "This program is to be referenced with a METHOD of POST or GET.\n";
-      cout << "If you don't understand this, see this ";
-      cout << "<A HREF=\"http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/";
-      cout << "Docs/fill-out-forms/overview.html\">forms overview</A>" << endl;
+      std::cout << "This program is to be referenced with a METHOD of POST or GET.\n";
+      std::cout << "If you don't understand this, see this ";
+      std::cout << "<A HREF=\"http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/";
+      std::cout << "Docs/fill-out-forms/overview.html\">forms overview</A>" << std::endl;
       exit (1);
     }
   }
@@ -84,7 +84,7 @@ void CGIAPP::GetInput() {
   if (Method==POST) {
     entry_count=0;
     for (x = 0; ContentLen>0; x++) {
-      cin.getline(temp1,ContentLen+1,'&');
+      std::cin.getline(temp1,ContentLen+1,'&');
       entry_count++;
       len=strlen(temp1);
       ContentLen=ContentLen-(len+1);
@@ -184,7 +184,7 @@ CGIAPP::CGIAPP() {
 void CGIAPP::Display() {
   INT x;
   for (x=0;x<entry_count;x++) {
-    cout << name[x] << " = " << value[x] << "<br>\n";
+    std::cout << name[x] << " = " << value[x] << "<br>\n";
   }
 }