]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[DAT/DAPL] fix DAT static registry filename to be Windows standard.
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 19 Sep 2007 20:05:11 +0000 (20:05 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 19 Sep 2007 20:05:11 +0000 (20:05 +0000)
fputc() in Windows does NOT push a char back into the stream suitable for subsequent fgetc(); use ungetc().

git-svn-id: svn://openib.tc.cornell.edu/gen1@810 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/dapl/dat/udat/udat_sr_parser.c

index 092546d307c2ed9e64addfe3ae787ec30c63c8f6..81a24c495e03e43fb5e61b197137e22105d633cb 100644 (file)
@@ -46,8 +46,8 @@
 \r
 #define DAT_SR_CONF_ENV                "DAT_OVERRIDE"\r
 #define DAT_SR_SYSTEM_DRIVE            "SystemDrive"\r
-#define DAT_SR_DRIVE_DEFAULT           "C:/"\r
-#define DAT_SR_CONF_DEFAULT            "/Dat/dat.conf"\r
+#define DAT_SR_DRIVE_DEFAULT           "C:"\r
+#define DAT_SR_CONF_DEFAULT            "\\Dat\\dat.conf"\r
 #define DAT_SR_TOKEN_THREADSAFE        "threadsafe"\r
 #define DAT_SR_TOKEN_NONTHREADSAFE     "nonthreadsafe"\r
 #define DAT_SR_TOKEN_DEFAULT           "default"\r
@@ -1269,7 +1269,7 @@ dat_sr_read_token (
     DAT_COUNT                  num_escape_seq;\r
     DAT_BOOLEAN                is_quoted_str;\r
     DAT_BOOLEAN                is_prev_char_backslash;\r
-       DAT_OS_FILE_POS cur_pos = 0;\r
+    DAT_OS_FILE_POS            cur_pos = 0;\r
     /* \r
      * The DAT standard does not specify a maximum size for quoted strings.\r
      * Therefore the tokenizer must be able to read in a token of arbitrary \r
@@ -1547,5 +1547,5 @@ dat_sr_read_comment (
     } while ( (DAT_SR_CHAR_NEWLINE != c) && (EOF != c) );\r
 \r
     /* put back the newline */\r
-    dat_os_fputc(file, c);\r
+    dat_os_ungetc(file, c);\r
 }\r