Procházet zdrojové kódy

sysconf returns long not size_t

ambrop7 před 15 roky
rodič
revize
57b288fff9
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      ncd/NCDIfConfig.c
  2. 1 1
      process/BProcess.c

+ 1 - 1
ncd/NCDIfConfig.c

@@ -250,7 +250,7 @@ int NCDIfConfig_make_tuntap (const char *ifname, const char *owner, int tun)
     }
     }
     
     
     if (owner) {
     if (owner) {
-        size_t bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);
+        long bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);
         if (bufsize < 0) {
         if (bufsize < 0) {
             bufsize = 16384;
             bufsize = 16384;
         }
         }

+ 1 - 1
process/BProcess.c

@@ -247,7 +247,7 @@ int BProcess_InitWithFds (BProcess *o, BProcessManager *m, BProcess_handler hand
         
         
         // assume identity of username, if requested
         // assume identity of username, if requested
         if (username) {
         if (username) {
-            size_t bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);
+            long bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);
             if (bufsize < 0) {
             if (bufsize < 0) {
                 bufsize = 16384;
                 bufsize = 16384;
             }
             }