Changeset 69658e in git for Singular/links/ssiLink.cc
- Timestamp:
- Feb 22, 2013, 12:29:35 AM (11 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- 2e2c67897e034b7ffa5b8a0dda72431cff944d4a
- Parents:
- 367df95c40f03bb94a871481eb198951b3a42c85cd4f243f3aafc7080a52fa973f2d90493e4847f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/links/ssiLink.cc
r367df9 r69658e 284 284 } 285 285 286 void ssiWritePoly(ssiInfo *d, int typ, poly p)286 void ssiWritePoly(ssiInfo *d, int /*typ*/, poly p) 287 287 { 288 288 SSI_BLOCK_CHLD; 289 289 fprintf(d->f_write,"%d ",pLength(p));//number of terms 290 290 SSI_UNBLOCK_CHLD; 291 int i;291 int j; 292 292 293 293 while(p!=NULL) … … 298 298 fprintf(d->f_write,"%ld ",p_GetComp(p,d->r));//component 299 299 300 for( intj=1;j<=rVar(d->r);j++)300 for(j=1;j<=rVar(d->r);j++) 301 301 { 302 302 fprintf(d->f_write,"%ld ",p_GetExp(p,j,d->r ));//x^j … … 416 416 l=s_readint(d->f_read); 417 417 buf=(char*)omAlloc0(l+1); 418 int c =s_getc(d->f_read); /* skip ' '*/419 int ll=s_readbytes(buf,l,d->f_read);418 /*int c =*/ (void) s_getc(d->f_read); /* skip ' '*/ 419 /*int ll=*/ (void) s_readbytes(buf,l,d->f_read); 420 420 //if (ll!=l) printf("want %d, got %d bytes\n",l,ll); 421 421 buf[l]='\0'; … … 528 528 { 529 529 /* syntax is <ch> <N> <l1> <v1> ...<lN> <vN> <number of orderings> <ord1> <block0_1> <block1_1> .... */ 530 int ch, N,i ,l;530 int ch, N,i/*,l*/; 531 531 char **names; 532 532 ch=s_readint(d->f_read); … … 585 585 //Print("poly: terms:%d\n",n); 586 586 poly p; 587 int j;588 j=0;587 // int j; 588 // j=0; 589 589 poly ret=NULL; 590 590 poly prev=NULL; … … 748 748 { 749 749 ssiInfo *d=(ssiInfo*)l->data; 750 int throwaway=s_readint(d->f_read);750 /*int throwaway=*/ (void) s_readint(d->f_read); 751 751 char *name=ssiReadString(d); 752 752 int tok; … … 891 891 int sockfd, newsockfd, portno, clilen; 892 892 struct sockaddr_in serv_addr, cli_addr; 893 int n;893 // int n; 894 894 sockfd = socket(AF_INET, SOCK_STREAM, 0); 895 895 if(sockfd < 0) … … 952 952 int sockfd, newsockfd, portno, clilen; 953 953 struct sockaddr_in serv_addr, cli_addr; 954 int n;954 // int n; 955 955 sockfd = socket(AF_INET, SOCK_STREAM, 0); 956 956 if(sockfd < 0) … … 1034 1034 { 1035 1035 char* host = (char*)omAlloc(256); 1036 int sockfd, portno , n;1036 int sockfd, portno/*, n*/; 1037 1037 struct sockaddr_in serv_addr; 1038 1038 struct hostent *server; … … 1485 1485 && (strcmp(request, "read") == 0)) 1486 1486 { 1487 fd_set mask , fdmask;1487 fd_set mask/*, fdmask*/; 1488 1488 struct timeval wt; 1489 1489 if (s_isready(d->f_read)) return "ready"; … … 1810 1810 } 1811 1811 int portno; 1812 int n;1812 // int n; 1813 1813 ssiReserved_sockfd = socket(AF_INET, SOCK_STREAM, 0); 1814 1814 if(ssiReserved_sockfd < 0) … … 1912 1912 **/ 1913 1913 /*---------------------------------------------------------------------*/ 1914 void sig_chld_hdl(int sig)1914 void sig_chld_hdl(int /*sig*/) 1915 1915 { 1916 1916 pid_t kidpid;
Note: See TracChangeset
for help on using the changeset viewer.